still supporting Ruby 1.8.7

This commit is contained in:
Thorsten Böttger 2013-12-01 00:23:34 +01:00
parent a7842dc289
commit 08d0511c90
4 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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

View File

@ -2,7 +2,7 @@ class SimpleNewDslMongoid
include Mongoid::Document
include AASM
field :status, type: String
field :status, :type => String
aasm :column => :status
aasm do

View File

@ -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