Sha256: 1199f98722a9317cdf2750df81ea2a32c3edd2d8ad33eb8ccbfb7c4e84e02499
Contents?: true
Size: 334 Bytes
Versions: 8
Compression:
Stored size: 334 Bytes
Contents
# frozen_string_literal: true require "active_support/concern" module ExtendHasMany extend ::ActiveSupport::Concern class_methods do def has_many(*args, &block) options = args.extract_options! options[:extend] = Array(options[:extend]).push(ClassMethods) super(*args, **options, &block) end end end
Version data entries
8 entries across 8 versions & 1 rubygems