Module: Squeel::Adapters::ActiveRecord::ReflectionExtensions

Defined in:
lib/squeel/adapters/active_record/4.1/reflection_extensions.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object


5
6
7
8
9
10
11
12
13
14
# File 'lib/squeel/adapters/active_record/4.1/reflection_extensions.rb', line 5

def self.included(base)
  base.extend ClassMethods
  base.class_eval do
    class << self
      alias_method_chain :reflect_on_aggregation, :squeel
      alias_method_chain :reflect_on_association, :squeel
      alias_method_chain :_reflect_on_association, :squeel
    end
  end
end