diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2010-03-27 11:26:12 -0300 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-03-27 16:42:51 +0100 |
commit | edbb9526d315444d560362487b78e03b2f3d7a61 (patch) | |
tree | 68d8c1d37fa4e27a91de55b668c8a5b6d3ff1507 /activesupport | |
parent | ff522cf4bcb31420baee62aa3c24c98959d80cdf (diff) | |
download | rails-edbb9526d315444d560362487b78e03b2f3d7a61.tar.gz rails-edbb9526d315444d560362487b78e03b2f3d7a61.tar.bz2 rails-edbb9526d315444d560362487b78e03b2f3d7a61.zip |
flatten not needed here
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/lib/active_support/core_ext/class/attribute_accessors.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/core_ext/class/attribute_accessors.rb b/activesupport/lib/active_support/core_ext/class/attribute_accessors.rb index 83d154be5c..be34a5a96f 100644 --- a/activesupport/lib/active_support/core_ext/class/attribute_accessors.rb +++ b/activesupport/lib/active_support/core_ext/class/attribute_accessors.rb @@ -11,7 +11,7 @@ require 'active_support/core_ext/array/extract_options' class Class def cattr_reader(*syms) options = syms.extract_options! - syms.flatten.each do |sym| + syms.each do |sym| class_eval(<<-EOS, __FILE__, __LINE__ + 1) unless defined? @@#{sym} # unless defined? @@hair_colors @@#{sym} = nil # @@hair_colors = nil @@ -33,7 +33,7 @@ class Class def cattr_writer(*syms) options = syms.extract_options! - syms.flatten.each do |sym| + syms.each do |sym| class_eval(<<-EOS, __FILE__, __LINE__ + 1) unless defined? @@#{sym} # unless defined? @@hair_colors @@#{sym} = nil # @@hair_colors = nil |