Module: ActiveModel::Associations::Hooks
- Defined in:
- lib/eac_rails_utils/patches/active_model_associations.rb
Class Method Summary collapse
Class Method Details
.init ⇒ Object
29 30 31 32 33 34 35 36 37 |
# File 'lib/eac_rails_utils/patches/active_model_associations.rb', line 29 def self.init return unless ::Rails.version < '5' ActiveSupport.on_load(:active_record) do ActiveRecord::Associations::AssociationScope.prepend( ::EacRailsUtils::Patches::ActiveModelAssociations::ScopeExtensionPatch ) end end |