Methods
Public Instance methods
Returns the current aasm_state of the object. Respects reload and any changes made to the aasm_state field directly
Internally just calls aasm_read_state
foo = Foo.find(1) foo.aasm_current_state # => :pending foo.aasm_state = "opened" foo.aasm_current_state # => :opened foo.close # => calls aasm_write_state_without_persistence foo.aasm_current_state # => :closed foo.reload foo.aasm_current_state # => :pending
[ show source ]
# File lib/persistence/active_record_persistence.rb, line 95
95: def aasm_current_state
96: @current_state = aasm_read_state
97: end