Class: NilClass
- Defined in:
- lib/active_record/associations/belongs_to_association.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#==(other) ⇒ Object
Ugly workaround - nil comparison is usually done in C and so a proxy object pretending to be nil doesn’t work.
Instance Method Details
#==(other) ⇒ Object
Ugly workaround - nil comparison is usually done in C and so a proxy object pretending to be nil doesn’t work.
71 72 73 |
# File 'lib/active_record/associations/belongs_to_association.rb', line 71 def ==(other) other.nil? end |