module SwitchPoint::Model
Public Class Methods
included(model)
click to toggle source
Calls superclass method
# File lib/switch_point/model.rb, line 8 def self.included(model) super model.singleton_class.class_eval do include ClassMethods prepend MonkeyPatch end end
Public Instance Methods
transaction_with(*models, &block)
click to toggle source
# File lib/switch_point/model.rb, line 24 def transaction_with(*models, &block) self.class.transaction_with(*models, &block) end
with_readonly(&block)
click to toggle source
# File lib/switch_point/model.rb, line 16 def with_readonly(&block) self.class.with_readonly(&block) end
with_writable(&block)
click to toggle source
# File lib/switch_point/model.rb, line 20 def with_writable(&block) self.class.with_writable(&block) end