Sha256: 536fd0c1adca40f610cce8b67c6ef24956dea56dae71e3adc576d6c25b8a0216
Contents?: true
Size: 496 Bytes
Versions: 4
Compression:
Stored size: 496 Bytes
Contents
# frozen_string_literal: true module Goldiloader module AssociationOptions extend self OPTIONS = [:fully_load].freeze # This is only used in Rails 5+ module AssociationBuilderExtension def self.build(model, reflection) # We have no callbacks to register end def self.valid_options OPTIONS end end def register ActiveRecord::Associations::Builder::Association.extensions << AssociationBuilderExtension end end end
Version data entries
4 entries across 4 versions & 1 rubygems