module RecordCache::Arel::TreeManager

The method <ActiveRecord::Base>.find_by_sql is used to actually retrieve the data from the DB. Unfortunately the ActiveRelation record is not accessible from there, so it is piggy-back’d in the SQL string.

The method <ActiveRecord::Base>.find_by_sql is used to actually retrieve the data from the DB. Unfortunately the ActiveRelation record is not accessible from there, so it is piggy-back’d in the SQL string.

The method <ActiveRecord::Base>.find_by_sql is used to actually retrieve the data from the DB. Unfortunately the ActiveRelation record is not accessible from there, so it is piggy-back’d in the SQL string.

The method <ActiveRecord::Base>.find_by_sql is used to actually retrieve the data from the DB. Unfortunately the ActiveRelation record is not accessible from there, so it is piggy-back’d in the SQL string.

The method <ActiveRecord::Base>.find_by_sql is used to actually retrieve the data from the DB. Unfortunately the ActiveRelation record is not accessible from there, so it is piggy-back’d in the SQL string.

Public Class Methods

included(klass) click to toggle source
# File lib/record_cache/datastore/active_record_30.rb, line 65
def self.included(klass)
  klass.extend ClassMethods
  klass.send(:include, InstanceMethods)
  klass.class_eval do
    alias_method_chain :to_sql, :record_cache
  end
end