lib/vanilla.rb in by_star-0.7.1 vs lib/vanilla.rb in by_star-0.7.2

- old
+ new

@@ -184,10 +184,10 @@ end private def by_direction(condition, time, options = {}, &block) - field = options.delete(:field) || "#{self.table_name}.created_at" + field = options.delete(:field) || by_star_field ensure_valid_options(options) result = scoped({ :conditions => ["#{field} #{condition} ?", time.utc] }.merge(options)) result = result.scoped(block.call) if block_given? result end \ No newline at end of file