module Arsi::Persistence::ClassMethods
Public Instance Methods
_delete_record(*)
click to toggle source
Calls superclass method
# File lib/arsi/persistence.rb, line 12 def _delete_record(*) with_relation_in_connection { super } end
_update_record(*)
click to toggle source
Calls superclass method
# File lib/arsi/persistence.rb, line 8 def _update_record(*) with_relation_in_connection { super } end
Private Instance Methods
with_relation_in_connection() { || ... }
click to toggle source
# File lib/arsi/persistence.rb, line 18 def with_relation_in_connection connection.arsi_relation = self.unscoped yield ensure connection.arsi_relation = nil end