Module: TrackChanges::Controller::Base

Defined in:
lib/track_changes/controller.rb

Instance Method Summary collapse

Instance Method Details

#attribute_changes_to(method_name) ⇒ Object



4
5
6
7
8
# File 'lib/track_changes/controller.rb', line 4

def attribute_changes_to(method_name)
  around_action do |controller, action_block|
    TrackChanges.with_changes_attributed_to controller.send(method_name), &action_block
  end
end