instance method
respond_to_missing?
Ruby on Rails 8.1.2
Since v7.1.6 PrivateSignature
respond_to_missing?(name, include_private = false)
No documentation comment.
Parameters
-
namereq -
include_privateopt = false
Source
# File activerecord/lib/active_record/attribute_methods.rb, line 465
def respond_to_missing?(name, include_private = false)
if self.class.define_attribute_methods
# Some methods weren't defined yet.
return true if self.class.method_defined?(name)
return true if include_private && self.class.private_method_defined?(name)
end
super
end
Defined in activerecord/lib/active_record/attribute_methods.rb line 465
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::AttributeMethods