Sha256: 25dd18fd894ea3af39fa965c83948f8d9a22de62508be6009616265bf0d2676a
Contents?: true
Size: 393 Bytes
Versions: 2
Compression:
Stored size: 393 Bytes
Contents
module EacRailsUtils::Models::TablelessAssociations module Hooks def self.init ActiveSupport.on_load(:active_record) do require 'eac_rails_utils/models/tableless_associations/association_scope_extension' ActiveRecord::Associations::AssociationScope.send(:prepend, EacRailsUtils::Models::TablelessAssociations::AssociationScopeExtension) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
eac_rails_utils-0.22.0 | lib/eac_rails_utils/models/tableless_associations/hooks.rb |
eac_rails_utils-0.21.0 | lib/eac_rails_utils/models/tableless_associations/hooks.rb |