README.md in date_supercharger-0.1.0 vs README.md in date_supercharger-0.1.1

- old
+ new

@@ -1,23 +1,43 @@ # Date Supercharger A nice shortcut for date queries. -`date_supercharger` adds `_after`, `_after_or_at`, `_before` and `_before_or_at` methods to every date/datetime field of Active Record models. +`date_supercharger` adds `between`,`between_inclusive`,`_after`, `_after_or_at`, `_before` and `_before_or_at` methods to every date/datetime field of Active Record models. [![Build Status](https://travis-ci.org/simon0191/date_supercharger.svg)](https://travis-ci.org/simon0191/date_supercharger) [![Code Climate](https://codeclimate.com/github/simon0191/date_supercharger/badges/gpa.svg)](https://codeclimate.com/github/simon0191/date_supercharger) [![Test Coverage](https://codeclimate.com/github/simon0191/date_supercharger/badges/coverage.svg)](https://codeclimate.com/github/simon0191/date_supercharger/coverage) ## Usage ```ruby -Visit.created_at_after(DateTime.now) +Visit.created_at_between(from,to) ``` instead of ```ruby -Visit.where("created_at > ?",DateTime.now) +Visit.where("created_at >= ? AND created_at < ?",from,to) +``` + +```ruby +Visit.created_at_between_inclusive(from,to) +``` + +instead of + +```ruby +Visit.where("created_at >= ? AND created_at <= ?",from,to) +``` + +```ruby +Visit.created_at_after(some_date) +``` + +instead of + +```ruby +Visit.where("created_at > ?",some_date) ``` ## Installation Add this line to your application’s Gemfile: