Class: Arel::SelectManager

Inherits:
TreeManager
  • Object
show all
Defined in:
ext/arel/select_manager.rb

Instance Method Summary collapse

Instance Method Details

#eager_loadObject



6
7
8
# File 'ext/arel/select_manager.rb', line 6

def eager_load
  @ast.eager_load
end

#eager_load=(eager_load) ⇒ Object



10
11
12
13
14
15
16
17
# File 'ext/arel/select_manager.rb', line 10

def eager_load=(eager_load)
  if eager_load.nil? || eager_load.expr.empty?
    @ast.eager_load = nil
  else
    @ast.eager_load = eager_load
  end
  self
end