instance method
id
Ruby on Rails 2.3.18
Since v2.2.3 Last seen in v3.2.22.5Signature
id()
Raises a RuntimeError when you attempt to call id on nil.
Source
# File activesupport/lib/active_support/whiny_nil.rb, line 40
def id
raise RuntimeError, "Called id for nil, which would mistakenly be 4 -- if you really wanted the id of nil, use object_id", caller
end
Defined in activesupport/lib/active_support/whiny_nil.rb line 40
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in NilClass