Module: Hound

Defined in:
lib/hound.rb,
lib/hound/model.rb,
lib/hound/action.rb,
lib/hound/config.rb,
lib/hound/version.rb,
lib/hound/controller.rb,
lib/generators/hound/install_generator.rb

Defined Under Namespace

Modules: Controller, Model Classes: Action, Config, InstallGenerator

Constant Summary collapse

VERSION =
'0.3.0'

Class Method Summary collapse

Class Method Details

.actionsObject

Returns an ActionRecord::Relation for the Hound::Action model.



25
26
27
# File 'lib/hound.rb', line 25

def self.actions
  Action.scoped
end

.configObject

The configuration storage for Hound.

Returns the Hound::Config instance.



11
12
13
# File 'lib/hound.rb', line 11

def self.config
  @config ||= Hound::Config.instance
end

.configure {|config| ... } ⇒ Object

Yields:



15
16
17
# File 'lib/hound.rb', line 15

def self.configure
  yield config
end

.storeObject

Returns the Hash for storing hound properties on the current thread.



20
21
22
# File 'lib/hound.rb', line 20

def self.store
  Thread.current[:hound] ||= {}
end