diff options
author | Matthew Draper <matthew@trebex.net> | 2017-05-26 15:23:37 +0930 |
---|---|---|
committer | Matthew Draper <matthew@trebex.net> | 2017-05-26 15:23:37 +0930 |
commit | 7a2fd70fc46ea7537a814172677adea86baf3747 (patch) | |
tree | 129f49841ec7cd1cd4396ab60d9c4a53b79e26fa /activerecord | |
parent | 85efa3a2cf110a2bc81cffcadc5056ed93128bed (diff) | |
download | rails-7a2fd70fc46ea7537a814172677adea86baf3747.tar.gz rails-7a2fd70fc46ea7537a814172677adea86baf3747.tar.bz2 rails-7a2fd70fc46ea7537a814172677adea86baf3747.zip |
Avoid circular require due to autoload
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/relation/predicate_builder.rb | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/activerecord/lib/active_record/relation/predicate_builder.rb b/activerecord/lib/active_record/relation/predicate_builder.rb index 183fe91c05..a6309e0b5c 100644 --- a/activerecord/lib/active_record/relation/predicate_builder.rb +++ b/activerecord/lib/active_record/relation/predicate_builder.rb @@ -1,12 +1,3 @@ -require "active_record/relation/predicate_builder/array_handler" -require "active_record/relation/predicate_builder/base_handler" -require "active_record/relation/predicate_builder/basic_object_handler" -require "active_record/relation/predicate_builder/range_handler" -require "active_record/relation/predicate_builder/relation_handler" - -require "active_record/relation/predicate_builder/association_query_value" -require "active_record/relation/predicate_builder/polymorphic_array_value" - module ActiveRecord class PredicateBuilder # :nodoc: delegate :resolve_column_aliases, to: :table @@ -178,3 +169,12 @@ module ActiveRecord end end end + +require "active_record/relation/predicate_builder/array_handler" +require "active_record/relation/predicate_builder/base_handler" +require "active_record/relation/predicate_builder/basic_object_handler" +require "active_record/relation/predicate_builder/range_handler" +require "active_record/relation/predicate_builder/relation_handler" + +require "active_record/relation/predicate_builder/association_query_value" +require "active_record/relation/predicate_builder/polymorphic_array_value" |