Class: AASM::Configuration
- Inherits:
-
Object
- Object
- AASM::Configuration
- Defined in:
- lib/aasm/configuration.rb
Instance Attribute Summary collapse
-
#column ⇒ Object
for all persistence layers: which database column to use?.
-
#create_scopes ⇒ Object
for all persistence layers: create named scopes for each state.
-
#enum ⇒ Object
Returns the value of attribute enum.
-
#no_direct_assignment ⇒ Object
forbid direct assignment in aasm_state column (in ActiveRecord).
-
#requires_new_transaction ⇒ Object
for ActiveRecord: use requires_new for nested transactions?.
-
#skip_validation_on_save ⇒ Object
for ActiveRecord: don’t store any new state if the model is invalid.
-
#whiny_transitions ⇒ Object
let’s cry if the transition is invalid.
Instance Attribute Details
#column ⇒ Object
for all persistence layers: which database column to use?
4 5 6 |
# File 'lib/aasm/configuration.rb', line 4 def column @column end |
#create_scopes ⇒ Object
for all persistence layers: create named scopes for each state
10 11 12 |
# File 'lib/aasm/configuration.rb', line 10 def create_scopes @create_scopes end |
#enum ⇒ Object
Returns the value of attribute enum.
21 22 23 |
# File 'lib/aasm/configuration.rb', line 21 def enum @enum end |
#no_direct_assignment ⇒ Object
forbid direct assignment in aasm_state column (in ActiveRecord)
19 20 21 |
# File 'lib/aasm/configuration.rb', line 19 def no_direct_assignment @no_direct_assignment end |
#requires_new_transaction ⇒ Object
for ActiveRecord: use requires_new for nested transactions?
16 17 18 |
# File 'lib/aasm/configuration.rb', line 16 def requires_new_transaction @requires_new_transaction end |
#skip_validation_on_save ⇒ Object
for ActiveRecord: don’t store any new state if the model is invalid
13 14 15 |
# File 'lib/aasm/configuration.rb', line 13 def skip_validation_on_save @skip_validation_on_save end |
#whiny_transitions ⇒ Object
let’s cry if the transition is invalid
7 8 9 |
# File 'lib/aasm/configuration.rb', line 7 def whiny_transitions @whiny_transitions end |