Module ActiveRecord::Extensions::FinderOptions::ClassMethods
In: ar-extensions/lib/ar-extensions/finder_options.rb

Methods

Public Instance methods

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)')

Protected Instance methods

override the constructor for use with associations (:include option) directly use eager select if that plugin is loaded instead of this one

generate the finder sql for use with associations (:include => :something)

[Validate]