348
349
350
351
352
353
354
355
356
357
358
359
360
361
|
# File 'lib/lafcadio/objectStore.rb', line 348
def method_missing( meth, *args )
simple_dispatch = [
:flush, :queries, :save, :set_commit_time, :update_after_commit
]
if simple_dispatch.include?( meth )
cache( args.first.domain_class ).send( meth, *args )
elsif [ :[], :last_commit_time ].include?( meth )
cache( args.first ).send( meth, *args[1..-1] )
elsif [ :group_query, :rollback, :transaction ].include?( meth )
@db_bridge.send( meth, *args )
else
super
end
end
|