lookup_store

lookup_store(*store_option) Class Public methods Creates a new CacheStore object according to the given options. If no arguments are passed to this method, then a new ActiveSupport::Cache::MemoryStore object will be returned. If you pass a Symbol as the first argument, then a corresponding cache store class under the ActiveSupport::Cache namespace will be created. For example: ActiveSupport::Cache.lookup_store(:memory_store) # => returns a new ActiveSupport::Cache::MemoryStore o

new

new(key_generator) Class Public methods

generate_key

generate_key(salt, key_size=64) Instance Public methods Returns a derived key suitable for use. The default key_size is chosen to be compatible with the default settings of ActiveSupport::MessageVerifier. i.e. OpenSSL::Digest::SHA1#block_length

new

new(&call) Class Public methods

after

after(&after) Instance Public methods

around

around(&around) Instance Public methods

before

before(&before) Instance Public methods

call

call(*args) Instance Public methods

define_callbacks

define_callbacks(*names) Instance Public methods Define sets of events in the object life cycle that support callbacks. define_callbacks :validate define_callbacks :initialize, :save, :destroy Options :terminator - Determines when a before filter will halt the callback chain, preventing following callbacks from being called and the event from being triggered. This should be a lambda to be executed. The current object and the return result of the callback will be called with the l

reset_callbacks

reset_callbacks(name) Instance Public methods Remove all set callbacks for the given event.