mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Remove unused requires on lib/active_record/associations.rb
"active_support/core_ext/string/conversions" was added on3f1cdb85b8
for `constantize`. Also, "active_support/core_ext/string/conversions" does not define `constantize` anymore. "active_support/core_ext/enumerable" was added onea290e77e6
for `index_by`. Moved the require to 'lib/active_record/associations/collection_association.rb' where it's still used Both usages of `index_by` and `constantize` at this file were removed at52f8e4b9da (diff-7c2226b7a4aa7f86f7d9e5e16b10686056c02efc725a60e378b5f9d7e52e8403)
This commit is contained in:
parent
2828d6b955
commit
07392f50d4
2 changed files with 2 additions and 3 deletions
|
@ -1,8 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require "active_support/core_ext/enumerable"
|
||||
require "active_support/core_ext/string/conversions"
|
||||
|
||||
module ActiveRecord
|
||||
class AssociationNotFoundError < ConfigurationError #:nodoc:
|
||||
attr_reader :record, :association_name
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require "active_support/core_ext/enumerable"
|
||||
|
||||
module ActiveRecord
|
||||
module Associations
|
||||
# = Active Record Association Collection
|
||||
|
|
Loading…
Reference in a new issue