lib/beso/job.rb in beso-0.3.4 vs lib/beso/job.rb in beso-0.3.5

- old
+ new

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