module Switchman::ActiveRecord::Persistence
Public Instance Methods
touch(*, **)
click to toggle source
touch reads the id attribute directly, so it's not relative to the current shard
Calls superclass method
# File lib/switchman/active_record/persistence.rb, line 7 def touch(*, **) shard.activate(self.class.connection_classes) { super } end
update_columns(*)
click to toggle source
Calls superclass method
# File lib/switchman/active_record/persistence.rb, line 11 def update_columns(*) shard.activate(self.class.connection_classes) { super } end