Module: ActiveRecord::EdgeStateMachine

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

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#reload(options = nil) ⇒ Object

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/active_record/edge-state-machine.rb', line 15

def reload(options = nil)
  super.tap do
    @current_states = {}
  end
end