Skip to content

Commit

Permalink
correcting my last commit
Browse files Browse the repository at this point in the history
git-svn-id: http://activescaffold.googlecode.com/svn/trunk@686 561dde7e-7729-0410-be8e-ef83869d6c7d
  • Loading branch information
cainlevy committed Nov 21, 2007
1 parent 1b64c53 commit 9f72972
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/finder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def find_page(options = {})
# TODO: this should reside on the model, not the controller
def merge_conditions(*conditions)
c = conditions.find_all {|c| not c.nil? and not c.empty? }
c.empty? ? nil : c.collect{|c| active_record_config.model.send(:sanitize_sql, c)}.join(' AND ')
c.empty? ? nil : c.collect{|c| active_scaffold_config.model.send(:sanitize_sql, c)}.join(' AND ')
end

# accepts a DataStructure::Sorting object and builds an order-by clause
Expand Down

0 comments on commit 9f72972

Please sign in to comment.