module DbCharmer::ActiveRecord::MasterSlaveRouting::ClassMethods

Constants

MASTER_METHODS
SLAVE_METHODS

Public Instance Methods

find(*args, &block) click to toggle source
Calls superclass method
# File lib/db_charmer/rails2/active_record/master_slave_routing.rb, line 29
def find(*args, &block)
  options = args.last
  if options.is_a?(Hash) && options[:lock]
    on_master { super(*args, &block) }
  else
    super(*args, &block)
  end
end