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.
38 39 40 |
# File 'lib/hound/model.rb', line 38 def actions_for_date(date) actions.where(created_at: date) end |
#hound? ⇒ Boolean
Returns true if hound is enabled on this instance.
43 44 45 |
# File 'lib/hound/model.rb', line 43 def hound? hound != false end |