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
- .empty
- .new(value, name) ⇒ FromClause constructor
Instance Attribute Summary
- #empty? ⇒ Boolean readonly
- #name readonly
- #value readonly
Instance Method Summary
Constructor Details
.new(value, name) ⇒ FromClause
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 ]#merge(other)
[ GitHub ]# File 'activerecord/lib/active_record/relation/from_clause.rb', line 13
def merge(other) self end