motion/cdq/context.rb
# Push a new context onto the stack for the current thread, making that context the
# default. If a block is supplied, push for the duration of the block and then
# return to the previous state.
#
Push a new context onto the stack for the current thread, making that context the
default. If a block is supplied, push for the duration of the block and then
return to the previous state.
Push a new context onto the stack for the current thread making that context the default . If a block is supplied push for the duration of the block and then return to the previous state .
def push(context, options = {}, &block)
      @has_been_set_up = true
      unless context.is_a? NSManagedObjectContext
        context = create(context, options)
      end
      if block_given?
        save_stack do
          context = push_to_stack(context)
          block.call
          context
        end
      else
        push_to_stack(context)
      end
    end
def push ( context , options = { } , & block ) @has_been_set_up = true unless context . is_a? NSManagedObjectContext context = create ( context , options ) end if block_given? save_stack do context = push_to_stack ( context ) block . call context end else push_to_stack ( context ) end end
Push a new context onto the stack for the current thread, making that context the
default.
Push a new context onto the stack for the current thread making that context the default .
context
<not_specific>
options
<not_specific>
block
<not_specific>