Module: Mongoid::EdgeStateMachine

Extended by:
ActiveSupport::Concern
Defined in:
lib/mongoid/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.



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

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