Module: InverseOf::AssociationPreload

Defined in:
lib/inverse_of.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



245
246
247
248
249
# File 'lib/inverse_of.rb', line 245

def self.included(base)
  base.extend ClassMethods
  base.metaclass.alias_method_chain :add_preloaded_records_to_collection, :inverse_of
  base.metaclass.alias_method_chain :set_association_single_records, :inverse_of
end