spec/timespan/mongoid/models/time_period.rb in timespan-0.4.6 vs spec/timespan/mongoid/models/time_period.rb in timespan-0.4.9
- old
+ new
@@ -1,9 +1,10 @@
class TimePeriod
include Mongoid::Document
include Mongoid::Timespanned
- field :dates, :type => ::Timespan, :between => true
+ field :dates, :type => ::Timespan, :between => true
+ field :flex, :type => ::DurationRange
embedded_in :account
timespan_methods :dates
end
\ No newline at end of file