module Postamt::Relation

Public Instance Methods

delete_all(conditions = nil) click to toggle source

Also make sure that actions that don't instantiate the model and therefore don't call save or destroy run on master. update_column calls update_all, delete calls delete_all, so we don't have to monkey patch them.

Calls superclass method
# File lib/postamt.rb, line 120
def delete_all(conditions = nil)
  Postamt.on(:master) { super }
end
update(updates) click to toggle source
Calls superclass method
# File lib/postamt.rb, line 124
def update(updates)
  Postamt.on(:master) { super }
end