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])
.order(find_order)
.scoping do
results_count = count
results = all
results_count = count
results = all
if options[:offset]
results = results.where("(#{searchable_options[:date_column]} " + (options[:before] ? '<' : '>') + "'#{connection.quoted_date(options[:offset])}')")
if options[:offset]
results = results.where("(#{searchable_options[:date_column]} " + (options[:before] ? '<' : '>') + "'#{connection.quoted_date(options[:offset])}')")
end
results = results.limit(options[:limit]) if options[:limit]
end
results = results.limit(options[:limit]) if options[:limit]
end
end
[results, results_count]
end

Loading…
Cancel
Save