RubyGems.org

named_scope_for_time_attr

stats overview

Provides the ActiveRecord helper method <tt>named_scope_for_time_attr</tt>. Given the name of a time attribute of an ActiveRecord model (e.g. <tt>created_at</tt> of <tt>Claim</tt>) it defines a correspondent named scope for easy access to an arbitrarily time range (scope).

654 total downloads
0 downloads today
0 / 7,137 highest rank today
title