class BlackAndWhite::Broker
Attributes
orm[RW]
Public Class Methods
invoke(method, *args)
click to toggle source
# File lib/black_and_white/broker.rb, line 7 def invoke(method, *args) if orm == :active_record BlackAndWhite::ActiveRecord::Test.send(method, *args) elsif orm == :mongoid BlackAndWhite::Mongoid::Test.send(method, *args) end end
register(type)
click to toggle source
# File lib/black_and_white/broker.rb, line 15 def register(type) self.orm = type end