Module: Footprinted::Model
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/footprinted/model.rb
Instance Method Summary collapse
-
#track_activity(ip:, user: nil, activity_type: nil) ⇒ Object
Fallback method for tracking activity.
Instance Method Details
#track_activity(ip:, user: nil, activity_type: nil) ⇒ Object
Fallback method for tracking activity. This will be overridden if has_trackable is called.
69 70 71 |
# File 'lib/footprinted/model.rb', line 69 def track_activity(ip:, user: nil, activity_type: nil) trackable_activities.create(ip: ip, user: user, activity_type: activity_type) end |