aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/algebra/relations/operations/from.rb
blob: 3ebfb10cb21b39b3e42643763dc32dbc9b361898 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
module Arel
  class From < Compound
    attr_reader :sources

    def initialize relation, sources
      super(relation)
      @sources = sources
    end

    def eval
      unoperated_rows[sources..-1]
    end
  end
end