aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-07-04 19:15:40 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-07-04 19:15:40 +0000
commit00739dee173a675a9da94ec4c9c9e2866715fb41 (patch)
tree4254eb424a55e6100193ea0ab23bf669289af7c3 /activesupport/lib
parent6e319ccce27d0855025eb69cb5224bd81cb41601 (diff)
downloadrails-00739dee173a675a9da94ec4c9c9e2866715fb41.tar.gz
rails-00739dee173a675a9da94ec4c9c9e2866715fb41.tar.bz2
rails-00739dee173a675a9da94ec4c9c9e2866715fb41.zip
Fixed conflict with Glue gem #1606 [Rick Olson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1675 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/lib')
-rw-r--r--activesupport/lib/active_support/class_attribute_accessors.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/activesupport/lib/active_support/class_attribute_accessors.rb b/activesupport/lib/active_support/class_attribute_accessors.rb
index 786dcf98cb..bb043f8e98 100644
--- a/activesupport/lib/active_support/class_attribute_accessors.rb
+++ b/activesupport/lib/active_support/class_attribute_accessors.rb
@@ -2,7 +2,7 @@
# just like the native attr* accessors for instance attributes.
class Class # :nodoc:
def cattr_reader(*syms)
- syms.each do |sym|
+ syms.select { |sym| sym.respond_to?(:id2name) }.each do |sym|
class_eval <<-EOS
if ! defined? @@#{sym.id2name}
@@#{sym.id2name} = nil
@@ -29,7 +29,7 @@ class Class # :nodoc:
end
def cattr_writer(*syms)
- syms.each do |sym|
+ syms.select { |sym| sym.respond_to?(:id2name) }.each do |sym|
class_eval <<-EOS
if ! defined? @@#{sym.id2name}
@@#{sym.id2name} = nil
@@ -54,4 +54,4 @@ class Class # :nodoc:
cattr_reader(*syms)
cattr_writer(*syms)
end
-end \ No newline at end of file
+end