| Module | ActiveRecord::Extensions::FinderOptions::ClassMethods |
| In: |
ar-extensions/lib/ar-extensions/finder_options.rb
|
Return a string containing the SQL used with the find(:all) The options are the same as those with find(:all)
Additional parameter of :force_eager_load forces eager loading even if the
column is not referenced. sql = Contact.finder_sql_to_string(:include => :primary_email_address) Contact.find_by_sql(sql + 'USE_INDEX(blah)')
override the constructor for use with associations (:include option) directly use eager select if that plugin is loaded instead of this one