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



44
45
46
47
# File 'lib/redis/actions/saving.rb', line 44

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