aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/class
diff options
context:
space:
mode:
authorJosh Kalderimis <josh.kalderimis@gmail.com>2010-06-21 22:11:12 +0200
committerJosé Valim <jose.valim@gmail.com>2010-06-21 23:34:45 +0200
commitdad71c6099e0e5cfb50f574853255e1abc255c34 (patch)
tree6f8305feda08c5f617554d2c5b0037c702cb6829 /activesupport/lib/active_support/core_ext/class
parent0421fb7a913c1c8a7e07a395106bbc65e75e9d45 (diff)
downloadrails-dad71c6099e0e5cfb50f574853255e1abc255c34.tar.gz
rails-dad71c6099e0e5cfb50f574853255e1abc255c34.tar.bz2
rails-dad71c6099e0e5cfb50f574853255e1abc255c34.zip
removed 'unless const_defined?' code smell
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'activesupport/lib/active_support/core_ext/class')
-rw-r--r--activesupport/lib/active_support/core_ext/class/inheritable_attributes.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/class/inheritable_attributes.rb b/activesupport/lib/active_support/core_ext/class/inheritable_attributes.rb
index 4be7eaf476..7aff05dcdf 100644
--- a/activesupport/lib/active_support/core_ext/class/inheritable_attributes.rb
+++ b/activesupport/lib/active_support/core_ext/class/inheritable_attributes.rb
@@ -128,7 +128,7 @@ class Class # :nodoc:
private
# Prevent this constant from being created multiple times
- EMPTY_INHERITABLE_ATTRIBUTES = {}.freeze unless const_defined?(:EMPTY_INHERITABLE_ATTRIBUTES)
+ EMPTY_INHERITABLE_ATTRIBUTES = {}.freeze
def inherited_with_inheritable_attributes(child)
inherited_without_inheritable_attributes(child) if respond_to?(:inherited_without_inheritable_attributes)