lib/timespan.rb in timespan-0.4.0 vs lib/timespan.rb in timespan-0.4.1

- old
+ new

@@ -6,9 +6,13 @@ require 'timespan/units' require 'timespan/compare' require 'timespan/printer' require 'timespan/span' +if defined?(Mongoid) + require 'timespan/mongoid' +end + if defined?(Rails) && Rails::VERSION::STRING >= '3.1' require 'duration/rails/engine' end class Timespan \ No newline at end of file