method

singleton_method_added

singleton_method_added(name)
private

No documentation available.

# File activerecord/lib/active_record/scoping/named.rb, line 192
          def singleton_method_added(name)
            super
            # Most Kernel extends are both singleton and instance methods so
            # respond_to is a fast check, but we don't want to define methods
            # only on the module (ex. Module#name)
            generate_relation_method(name) if Kernel.respond_to?(name) && (Kernel.method_defined?(name) || Kernel.private_method_defined?(name)) && !ActiveRecord::Relation.method_defined?(name)
          end