lib/beso/job.rb in beso-0.3.3 vs lib/beso/job.rb in beso-0.3.4
- old
+ new
@@ -31,10 +31,10 @@
@since ||= options.delete( :since ) || first_timestamp
condition = "#{@table}.#{@timestamp} >= ?"
- relation = model_class.instance_exec( &@scope ).where( condition, @since )
+ relation = model_class.where( condition, @since ).instance_exec &@scope
return nil if relation.empty?
Beso::CSV.generate( @extra.merge( options ) ) do |csv|
csv << ( required_headers + custom_headers )