aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/class
diff options
context:
space:
mode:
authorYehuda Katz <wycats@gmail.com>2009-03-03 16:42:20 -0800
committerYehuda Katz <wycats@gmail.com>2009-03-03 16:42:20 -0800
commit6001cea5d70344d4c13b5cff94ee853f5f5462ce (patch)
tree10fb155f964c040c9f88e471570d2b99fe024e4c /activesupport/lib/active_support/core_ext/class
parentcde9aab8238c9acccc0ecc3efc988d752d4cc940 (diff)
downloadrails-6001cea5d70344d4c13b5cff94ee853f5f5462ce.tar.gz
rails-6001cea5d70344d4c13b5cff94ee853f5f5462ce.tar.bz2
rails-6001cea5d70344d4c13b5cff94ee853f5f5462ce.zip
Helpers with an initial test
Diffstat (limited to 'activesupport/lib/active_support/core_ext/class')
-rw-r--r--activesupport/lib/active_support/core_ext/class/inheritable_attributes.rb6
1 files changed, 3 insertions, 3 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 c121933050..2f18666ab9 100644
--- a/activesupport/lib/active_support/core_ext/class/inheritable_attributes.rb
+++ b/activesupport/lib/active_support/core_ext/class/inheritable_attributes.rb
@@ -188,7 +188,7 @@ class Class
# @todo We need a style for class_eval <<-HEREDOC. I'd like to make it
# class_eval(<<-RUBY, __FILE__, __LINE__), but we should codify it somewhere.
def extlib_inheritable_writer(*ivars)
- instance_writer = ivars.pop[:instance_writer] if ivars.last.is_a?(Hash)
+ instance_writer = ivars.pop[:writer] if ivars.last.is_a?(Hash)
ivars.each do |ivar|
self.class_eval <<-RUBY, __FILE__, __LINE__ + 1
def self.#{ivar}=(obj)
@@ -213,7 +213,7 @@ class Class
#
# @api public
def extlib_inheritable_accessor(*syms)
- class_inheritable_reader(*syms)
- class_inheritable_writer(*syms)
+ extlib_inheritable_reader(*syms)
+ extlib_inheritable_writer(*syms)
end
end \ No newline at end of file