instance method
singleton_method_added
Ruby on Rails 6.1.7.10
Since v6.0.6 PrivateSignature
singleton_method_added(name)
No documentation comment.
Parameters
-
namereq
Source
# File activerecord/lib/active_record/scoping/named.rb, line 193
def singleton_method_added(name)
generate_relation_method(name) if Kernel.respond_to?(name) && !ActiveRecord::Relation.method_defined?(name)
end
Defined in activerecord/lib/active_record/scoping/named.rb line 193
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Scoping::Named::ClassMethods