Indent fix in acts_as_searchable

[ci skip]

Signed-off-by: Alex Coles <alex@alexbcoles.com>
pull/3194/head
Alex Coles 9 years ago
parent 8fd535769a
commit 1bcbad97d5
  1. 13
      lib/plugins/acts_as_searchable/lib/acts_as_searchable.rb

@ -117,15 +117,14 @@ module Redmine
.references(searchable_options[:references]) .references(searchable_options[:references])
.order(find_order) .order(find_order)
.scoping do .scoping do
results_count = count
results = all
results_count = count if options[:offset]
results = all results = results.where("(#{searchable_options[:date_column]} " + (options[:before] ? '<' : '>') + "'#{connection.quoted_date(options[:offset])}')")
end
if options[:offset] results = results.limit(options[:limit]) if options[:limit]
results = results.where("(#{searchable_options[:date_column]} " + (options[:before] ? '<' : '>') + "'#{connection.quoted_date(options[:offset])}')")
end end
results = results.limit(options[:limit]) if options[:limit]
end
end end
[results, results_count] [results, results_count]
end end

Loading…
Cancel
Save