instance method
id
Ruby on Rails 3.0.20
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 39
def id
raise RuntimeError, "Called id for nil, which would mistakenly be #{object_id} -- if you really wanted the id of nil, use object_id", caller
end
Defined in activesupport/lib/active_support/whiny_nil.rb line 39
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in NilClass