Module: Hound::Model::InstanceMethods

Defined in:
lib/hound/model.rb

Instance Method Summary collapse

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.

Returns:

  • (Boolean)


43
44
45
# File 'lib/hound/model.rb', line 43

def hound?
  hound != false
end