Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove method if already exists to avoid warnings.

  • Loading branch information...
commit 6b135f7e465a6cd1c8162432f6e0caa820316c44 1 parent 0cb1d87
@miloops miloops authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  activesupport/lib/active_support/core_ext/class/attribute.rb
View
1  activesupport/lib/active_support/core_ext/class/attribute.rb
@@ -75,6 +75,7 @@ def self.#{name}=(val)
val
end
+ remove_method :#{name} if method_defined?(:#{name})
def #{name}
defined?(@#{name}) ? @#{name} : singleton_class.#{name}
end
Please sign in to comment.
Something went wrong with that request. Please try again.