lib/acts_as_state_machine.rb
# Returns the current state the object is in, as a Ruby symbol.
Returns the current state the object is in, as a Ruby symbol.
Returns the current state the object is in as a Ruby symbol .
def current_state
      state = self.send(self.class.state_column)
      unless state.nil?
        state.to_sym
      end
    end
def current_state state = self . send ( self . class . state_column ) unless state . nil? state . to_sym end end
Returns the current state the object is in, as a Ruby symbol.
Returns the current state the object is in as a Ruby symbol .