APIdock / Ruby on Rails
/
Browse About
method

include_eager_order?

v2.0.3 - Show latest stable - Class: ActiveRecord::Associations::ClassMethods
include_eager_order?(options)
private

Checks if the query order references a table other than the current model’s table.

# File activerecord/lib/active_record/associations.rb, line 1370
        def include_eager_order?(options)
          order = options[:order]
          return false unless order
          order.scan(/([\.\w]+)\.\w+/).flatten.any? do |order_table_name|
            order_table_name != table_name
          end
        end

Related methods

  • Instance methods
  • belongs_to
  • has_and_belongs_to_many
  • has_many
  • has_one
  • Private methods
  • privateadd_association_callbacks
  • privateadd_limited_ids_condition!
  • privateadd_multiple_associated_save_callbacks
  • privateassociation_accessor_methods
  • privateassociation_constructor_method
  • privatecollection_accessor_methods
  • privatecollection_reader_method
  • privatecolumn_aliases
  • privatecondition_word
  • privateconfigure_dependency_for_has_many
  • privateconfigure_dependency_for_has_one
  • privateconstruct_finder_sql_for_association_limiting
  • privateconstruct_finder_sql_with_included_associations
  • privatecreate_belongs_to_reflection
  • privatecreate_extension_modules
  • privatecreate_has_and_belongs_to_many_reflection
  • privatecreate_has_many_reflection
  • privatecreate_has_one_reflection
  • privatefind_with_associations
  • privateguard_against_unlimitable_reflections
  • privateinclude_eager_conditions?
  • privateinclude_eager_order?
  • privatejoin_table_name
  • privatereflect_on_included_associations
  • privateselect_all_rows
  • privateselect_limited_ids_list
  • privateusing_limitable_reflections?
APIdock API Documentation Browser

© 2026 APIdock