Flowdock
method

construct_finder_sql

Importance_0
v1.0.0 - Show latest stable - 0 notes - Class: ActiveRecord::Base
construct_finder_sql(options) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/base.rb, line 918
        def construct_finder_sql(options)
          sql  = "SELECT #{options[:select] || '*'} FROM #{table_name} "
          add_joins!(sql, options)
          add_conditions!(sql, options[:conditions])
          sql << " GROUP BY #{options[:group]} " if options[:group]
          sql << " ORDER BY #{options[:order]} " if options[:order]
          add_limit!(sql, options)
          sql
        end
Register or log in to add new notes.