README.md in timespan-0.5.9 vs README.md in timespan-0.6.0
- old
+ new
@@ -28,9 +28,18 @@
t = Timespan.new(:from => 2.days.ago, :duration => "5 months and 2 weeks")
```
See specs for more examples of usage
+## For use with Mongoid
+
+```ruby
+gem 'mongoid'
+gem 'origin-selectable_ext'
+
+gem 'timespan'
+```
+
## Comparison
```ruby
timespan.between?(2.days.ago, 1.minute.from_now)
timespan.between?(1.days, 3.days)