instance method
id
Ruby on Rails 3.2.22.5
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 21
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 21
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in NilClass