spec/support/mongoid.rb in statesman-1.2.2 vs spec/support/mongoid.rb in statesman-1.2.3
- old
+ new
@@ -12,17 +12,17 @@
has_many :my_mongoid_model_transitions
end
class MyMongoidModelTransition
include Mongoid::Document
+ include Mongoid::Timestamps
field :to_state, type: String
field :sort_key, type: Integer
field :statesman_metadata, type: Hash
index(sort_key: 1)
belongs_to :my_mongoid_model, index: true
- alias_method :metadata, :statesman_metadata
- alias_method :metadata=, :statesman_metadata=
+ include Statesman::Adapters::MongoidTransition
end