Module: Hound::Model::InstanceMethods
- Defined in:
- lib/hound/model.rb
Instance Method Summary collapse
-
#actions_for_date(date) ⇒ Object
Return all actions in provided date.
-
#hound? ⇒ Boolean
Returns true if hound is enabled on this instance.
Instance Method Details
#actions_for_date(date) ⇒ Object
Return all actions in provided date.
44 45 46 |
# File 'lib/hound/model.rb', line 44 def actions_for_date(date) actions.where(created_at: date) end |
#hound? ⇒ Boolean
Returns true if hound is enabled on this instance.
49 50 51 |
# File 'lib/hound/model.rb', line 49 def hound? hound != false end |