Module: Central::Support::ActivityConcern::Callbacks
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/central/support/concerns/activity_concern/callbacks.rb
Instance Method Summary collapse
Instance Method Details
#parse_changes ⇒ Object
13 14 15 16 17 18 19 20 21 |
# File 'lib/central/support/concerns/activity_concern/callbacks.rb', line 13 def parse_changes if action == 'update' self.subject_changes = subject.changes elsif action == 'destroy' self.subject_changes = subject.attributes self.subject_destroyed_type = subject.class.name self.subject = nil end end |