README.md in season-0.0.3 vs README.md in season-0.0.4
- old
+ new
@@ -5,11 +5,11 @@
## Installation
Add this line to your application's Gemfile:
```ruby
-gem 'season', '~> 0.0.3'
+gem 'season', '~> 0.0.4'
```
And then execute:
$ bundle
@@ -29,12 +29,19 @@
Right now, Season gives you the following helper methods:
```ruby
# You can pass instances of Time/DateTime/String as arguments
-class User < ActiveRecord::Base; end
+class User < ActiveRecord::Base
+ include Season::Scopes
+ ...
+
+end
+
+# And then use it as:
+
User.created_before(Time.now)
User.created_after(DateTime.now)
User.created_between(Time.now - 1.week, '31-01-2015')
User.updated_before(DateTime.now)
@@ -45,10 +52,10 @@
## Configuration
The scopes are not included by default in your models. To use them you need to include it yourself:
```ruby
-Class User < ActiveRecord::Base
+class User < ActiveRecord::Base
include Season::Scopes
...
end