mirror of
https://github.com/aasm/aasm
synced 2023-03-27 23:22:41 -04:00
still supporting Ruby 1.8.7
This commit is contained in:
parent
a7842dc289
commit
08d0511c90
4 changed files with 4 additions and 4 deletions
|
@ -2,7 +2,7 @@ class NoScopeMongoid
|
|||
include Mongoid::Document
|
||||
include AASM
|
||||
|
||||
field :status, type: String
|
||||
field :status, :type => String
|
||||
|
||||
aasm :create_scopes => false, :column => :status do
|
||||
state :ignored_scope
|
||||
|
|
|
@ -2,7 +2,7 @@ class SimpleMongoid
|
|||
include Mongoid::Document
|
||||
include AASM
|
||||
|
||||
field :status, type: String
|
||||
field :status, :type => String
|
||||
|
||||
aasm column: :status do
|
||||
state :unknown_scope
|
||||
|
|
|
@ -2,7 +2,7 @@ class SimpleNewDslMongoid
|
|||
include Mongoid::Document
|
||||
include AASM
|
||||
|
||||
field :status, type: String
|
||||
field :status, :type => String
|
||||
|
||||
aasm :column => :status
|
||||
aasm do
|
||||
|
|
|
@ -11,7 +11,7 @@ class LocalizerTestModel < ActiveRecord::Base
|
|||
attr_accessor :aasm_state
|
||||
|
||||
aasm do
|
||||
state :opened, initial: true
|
||||
state :opened, :initial => true
|
||||
state :closed
|
||||
event :close
|
||||
event :open
|
||||
|
|
Loading…
Reference in a new issue