instance method
missing_name?
Ruby on Rails 4.2.9
Since v3.0.20Signature
missing_name?(name)
Was this exception raised because the given name was missing?
Parameters
-
namereq
Source
# File activesupport/lib/active_support/core_ext/name_error.rb, line 10
def missing_name?(name)
if name.is_a? Symbol
last_name = (missing_name || '').split('::').last
last_name == name.to_s
else
missing_name == name.to_s
end
end
Defined in activesupport/lib/active_support/core_ext/name_error.rb line 10
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in NameError