Class: Activities::ArticleObserver

Inherits:
Logger
  • Object
show all
Defined in:
app/observers/activities/article_observer.rb

Instance Method Summary collapse

Methods inherited from Logger

#after_destroy, #after_save, #before_save, logs_activity

Instance Method Details

#initialize_activity(record) ⇒ Object



11
12
13
14
15
16
17
# File 'app/observers/activities/article_observer.rb', line 11

def initialize_activity(record)
  super.tap do |activity|
    activity.site = record.site
    activity.section = record.section
    activity.author = record.author
  end
end