Hello all !
A really simple plugin. It allows you to simplify your booleans. Instead of:
if @post.published_at > Time.now then # do something else # do something else end
The plugin allows you to write:
if @post.published_at.in_future? then # do something else # do something else end
This is something simple, but really useful, I think.
Installation: $ script/plugin install \ svn://svn.teksol.info/svn/rails/plugins/time_extensions \ vendor/plugins/time_extensions
Blog post describing the plugin (essentially the same text): http://blog.teksol.info/articles/2006/11/13/timeextensions-plugin
Enjoy !