method

class_method_defined_within?

Importance_0
v4.2.7 - Show latest stable - 0 notes - Class: ActiveRecord::AttributeMethods::ClassMethods
class_method_defined_within?(name, klass, superklass = klass.superclass) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/attribute_methods.rb, line 153
      def class_method_defined_within?(name, klass, superklass = klass.superclass) # :nodoc
        if klass.respond_to?(name, true)
          if superklass.respond_to?(name, true)
            klass.method(name).owner != superklass.method(name).owner
          else
            true
          end
        else
          false
        end
      end
Register or log in to add new notes.