Sha256: 6af5cbc6bfed81889d9f872445eeab1e17d95b03ebe894ad3ee9d420fff80afb
Contents?: true
Size: 748 Bytes
Versions: 1
Compression:
Stored size: 748 Bytes
Contents
= TimeMachine This plugin lets you easily change Time.now. == Installation Add gem 'time_machine' to your development group and add this in a view file (ie application layout): <%= time_machine %> Reload, and you'll see a small box in the upper left corner of your app. Use this to travel in time and see how your app behaves/looks like when time changes. == Options You can pass some options to the time_machine helper to change some settings: <%= time_machine style: 'dark', position: 'top-right', state: 'collapsed' %> == Behind the scenes It's just an engine with two routes. When you select a date you're sent to /time_machine/the-date where Timecop changes the date, and then you're redirected back to where you came from.
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
time_machine-0.0.1 | README.rdoc |