Module: ActsAsModelWithStatus::InstanceMethods
- Defined in:
- lib/acts_as_model_with_status/instance_methods.rb
Instance Method Summary collapse
Instance Method Details
#status ⇒ Object
3 4 5 |
# File 'lib/acts_as_model_with_status/instance_methods.rb', line 3 def status status_key read_attribute(self.status_column.to_sym) end |
#status=(key) ⇒ Object
7 8 9 10 11 |
# File 'lib/acts_as_model_with_status/instance_methods.rb', line 7 def status= key validate_status key write_attribute(self.status_column.to_sym, status_value(key)) end |