Added import mode support.

This commit is contained in:
Martin Edenhofer 2014-03-10 16:46:15 +01:00
parent a549f94037
commit c17626ef37
3 changed files with 12 additions and 0 deletions

View file

@ -19,6 +19,10 @@ returns
=end
def activity_stream_log (type, user_id, force = false)
# return if we run import mode
return if Setting.get('import_mode')
role = self.class.activity_stream_support_config[:role]
updated_at = self.updated_at
if force

View file

@ -16,6 +16,10 @@ returns
=end
def activity_stream_log (type, user_id)
# return if we run import mode
return if Setting.get('import_mode')
return if !self.class.activity_stream_support_config
role = self.class.activity_stream_support_config[:role]
ActivityStream.add(

View file

@ -16,6 +16,10 @@ returns
=end
def activity_stream_log (type, user_id)
# return if we run import mode
return if Setting.get('import_mode')
return if !self.class.activity_stream_support_config
role = self.class.activity_stream_support_config[:role]
ticket = Ticket.lookup( :id => self.ticket_id )