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.



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.

Returns:

  • (Boolean)


49
50
51
# File 'lib/hound/model.rb', line 49

def hound?
  hound != false
end