Class: Merit::ReputationChangeObserver

Inherits:
Object
  • Object
show all
Defined in:
lib/merit/reputation_change_observer.rb

Instance Method Summary collapse

Instance Method Details

#update(changed_data) ⇒ Object


3
4
5
6
7
8
9
# File 'lib/merit/reputation_change_observer.rb', line 3

def update(changed_data)
  ActivityLog.create(
    description:    changed_data[:description],
    related_change: related_change(changed_data),
    action_id:      changed_data[:merit_action_id]
  )
end