lib/shared.rb in by_star-0.6.3 vs lib/shared.rb in by_star-0.6.4
- old
+ new
@@ -1,10 +1,10 @@
module Shared
def conditions_for_range(start_time, end_time, field="created_at")
field = table_name << '.' << (field ? field.to_s : "created_at")
["#{field} >= ? AND #{field} <= ?", start_time.utc, end_time.utc]
end
-
+
private
def scoped_by(options=nil, &block)
if options && scope = options.call
with_scope(:find => scope) do
block.call
\ No newline at end of file