README.rdoc in timecop-console-0.2.0 vs README.rdoc in timecop-console-0.3.0
- old
+ new
@@ -13,10 +13,14 @@
== How to Use
Add to your `Gemfile`:
- gem 'timecop-console', :github => 'jtrupiano/timecop-console', :require => 'timecop_console'
+ group :development, :staging do
+ gem 'timecop-console', '~> 0.2', :require => 'timecop_console'
+ end
+
+Protip: avoid having `timecop-console` gem as part of `test` group if you use Timecop in your tests to avoid any hard-to-debug exceptions.
By requiring this dependency, it will open up ActionController::Base and inject an around_filter that will manage Time.now and friends for you.
You'll want to hook in the mountable engine for handling time changes in the specific environments that you want this to load in (probably only development, staging). Modify your `config/routes.rb`, adding: