method

select_association_list

Importance_0
v7.0.0 - Show latest stable - 0 notes - Class: ActiveRecord::QueryMethods
select_association_list(associations, stashed_joins = nil) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/relation/query_methods.rb, line 1368
      def select_association_list(associations, stashed_joins = nil)
        result = []
        associations.each do |association|
          case association
          when Hash, Symbol, Array
            result << association
          when ActiveRecord::Associations::JoinDependency
            stashed_joins&.<< association
          else
            yield association if block_given?
          end
        end
        result
      end
Register or log in to add new notes.