Module: Sidestate::Hook::ClassMethods
- Defined in:
- lib/sidestate/hook.rb
Instance Method Summary collapse
Instance Method Details
#aasm_state_class ⇒ Object
21 22 23 |
# File 'lib/sidestate/hook.rb', line 21 def aasm_state_class "#{name}State".constantize end |
#aasm_state_collection ⇒ Object
25 26 27 |
# File 'lib/sidestate/hook.rb', line 25 def aasm_state_collection aasm_state_class.name.pluralize.underscore.to_sym end |
#aasm_state_object ⇒ Object
29 30 31 |
# File 'lib/sidestate/hook.rb', line 29 def aasm_state_object aasm_state_class.name.underscore.to_sym end |