Module: MongoMapper::EdgeStateMachine

Extended by:
ActiveSupport::Concern
Defined in:
lib/mongo_mapper/edge-state-machine.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#reloadObject

The optional options argument is passed to find when reloading so you may do e.g. record.reload(:lock => true) to reload the same record with an exclusive row lock.



16
17
18
19
20
# File 'lib/mongo_mapper/edge-state-machine.rb', line 16

def reload
  super.tap do
    @current_states = {}
  end
end