Exception: Toy::Mongo::IncompatibleAdapter

Inherits:
Error
  • Object
show all
Defined in:
lib/toy/mongo/atomic_updates.rb

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ IncompatibleAdapter

Returns a new instance of IncompatibleAdapter.



4
5
6
# File 'lib/toy/mongo/atomic_updates.rb', line 4

def initialize(name)
  super "In order to use partial updates, you need to be using the :mongo_atomic adapter, but you are using :#{name}"
end