diff --git a/lib/aasm/persistence/active_record_persistence.rb b/lib/aasm/persistence/active_record_persistence.rb index 31ca9f19..b2c70d93 100644 --- a/lib/aasm/persistence/active_record_persistence.rb +++ b/lib/aasm/persistence/active_record_persistence.rb @@ -76,24 +76,6 @@ def with_state_scope(state) module InstanceMethods - # 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 - # - def aasm_current_state - @current_state = aasm_read_state - end - private # Ensures that if the aasm_state column is nil and the record is new diff --git a/lib/aasm/persistence/mongoid_persistence.rb b/lib/aasm/persistence/mongoid_persistence.rb index ea0407cd..e1eda1c8 100644 --- a/lib/aasm/persistence/mongoid_persistence.rb +++ b/lib/aasm/persistence/mongoid_persistence.rb @@ -70,24 +70,6 @@ def with_state_scope(state) module InstanceMethods - # 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 - # - def aasm_current_state - @current_state = aasm_read_state - end - private # Ensures that if the aasm_state column is nil and the record is new