aboutsummaryrefslogblamecommitdiffstats
path: root/activerecord/lib/active_record/relation/from_clause.rb
blob: c53a682aee7e5430a324e9979e67d7933ee2b23f (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12

                             

                   
                              






                                 








                      
                                



         
# frozen_string_literal: true

module ActiveRecord
  class Relation
    class FromClause # :nodoc:
      attr_reader :value, :name

      def initialize(value, name)
        @value = value
        @name = name
      end

      def merge(other)
        self
      end

      def empty?
        value.nil?
      end

      def self.empty
        @empty ||= new(nil, nil)
      end
    end
  end
end