Class: ActiveRecord::Relation

Inherits:
Object
  • Object
show all
Defined in:
lib/extensions/ar_virtual.rb

Instance Method Summary collapse

Instance Method Details

#without_virtual_includesObject


691
692
693
694
695
696
697
698
# File 'lib/extensions/ar_virtual.rb', line 691

def without_virtual_includes
  filtered_includes = includes_values && klass.remove_virtual_fields(includes_values)
  if filtered_includes != includes_values
    spawn.tap { |other| other.includes_values = filtered_includes }
  else
    self
  end
end