123456789_123456789_123456789_123456789_123456789_

Class: ActiveRecord::Relation::FromClause

Do not use. This class is for internal use only.
Relationships & Source Files
Inherits: Object
Defined in: activerecord/lib/active_record/relation/from_clause.rb

Class Method Summary

Instance Attribute Summary

Instance Method Summary

Constructor Details

.new(value, name) ⇒ FromClause

[ GitHub ]

  
# File 'activerecord/lib/active_record/relation/from_clause.rb', line 8

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

Class Method Details

.empty

[ GitHub ]

  
# File 'activerecord/lib/active_record/relation/from_clause.rb', line 25

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

Instance Attribute Details

#empty?Boolean (readonly)

[ GitHub ]

  
# File 'activerecord/lib/active_record/relation/from_clause.rb', line 17

def empty?
  value.nil?
end

#name (readonly)

[ GitHub ]

  
# File 'activerecord/lib/active_record/relation/from_clause.rb', line 6

attr_reader :value, :name

#value (readonly)

[ GitHub ]

  
# File 'activerecord/lib/active_record/relation/from_clause.rb', line 6

attr_reader :value, :name

Instance Method Details

#==(other)

[ GitHub ]

  
# File 'activerecord/lib/active_record/relation/from_clause.rb', line 21

def ==(other)
  self.class == other.class && value == other.value && name == other.name
end

#merge(other)

[ GitHub ]

  
# File 'activerecord/lib/active_record/relation/from_clause.rb', line 13

def merge(other)
  self
end