Module: ActsAsTracked::Extenders::Trackable

Defined in:
lib/acts_as_tracked/extenders/trackable.rb

Instance Method Summary collapse

Instance Method Details

#acts_as_tracked(args = {}) ⇒ Object

Includes Tracking module in specified model

if given, excludes specified params from tracking



15
16
17
18
19
20
21
# File 'lib/acts_as_tracked/extenders/trackable.rb', line 15

def acts_as_tracked(args = {})
  require 'acts_as_tracked/tracking'

  include ::ActsAsTracked::Tracking

  exclude_activity_attributes(*args[:exclude_activity_attributes]) if args[:exclude_activity_attributes]
end