Sha256: cbbd7ea034438add4a8ff87fd0c9255fd16e366b26cb54ae02650d747f6218d0

Contents?: true

Size: 335 Bytes

Versions: 10

Compression:

Stored size: 335 Bytes

Contents

module ActiveModel::Associations
  module Hooks
    def self.init
      ActiveSupport.on_load(:active_record) do
        require 'active_model/associations/association_scope_extension'
        ActiveRecord::Associations::AssociationScope.send(:prepend, ActiveModel::Associations::AssociationScopeExtension)
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
eac_rails_utils-0.20.0 lib/active_model/associations/hooks.rb
activemodel-associations-0.2.0 lib/active_model/associations/hooks.rb
activemodel-associations-0.2.0.beta2 lib/active_model/associations/hooks.rb
activemodel-associations-0.2.0.beta1 lib/active_model/associations/hooks.rb
activemodel-associations-0.1.2 lib/active_model/associations/hooks.rb
activemodel-associations-0.1.1 lib/active_model/associations/hooks.rb
activemodel-associations-0.1.0 lib/active_model/associations/hooks.rb
activemodel-associations-0.0.3 lib/active_model/associations/hooks.rb
activemodel-associations-0.0.2 lib/active_model/associations/hooks.rb
activemodel-associations-0.0.1 lib/active_model/associations/hooks.rb