Module: Redis::Actions::Saving::ClassMethods

Defined in:
lib/redis/actions/saving.rb

Instance Method Summary collapse

Instance Method Details

#within_save_block(method_name = nil, &block) ⇒ Object



42
43
44
45
# File 'lib/redis/actions/saving.rb', line 42

def within_save_block(method_name = nil, &block)
  within_save_blocks << method_name if method_name
  within_save_blocks << block       if block_given?
end