aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support
diff options
context:
space:
mode:
authorNeeraj Singh <neerajdotname@gmail.com>2010-08-06 15:51:52 -0400
committerNeeraj Singh <neerajdotname@gmail.com>2010-08-06 15:51:52 -0400
commitfc01adee79cd38069d89c2e457be99911e2a0ea3 (patch)
tree764a12c5c64cb63c25d6323249584b82157911d0 /activesupport/lib/active_support
parent74dde5951af9f7cbea080087c49f2654e619a0fd (diff)
downloadrails-fc01adee79cd38069d89c2e457be99911e2a0ea3.tar.gz
rails-fc01adee79cd38069d89c2e457be99911e2a0ea3.tar.bz2
rails-fc01adee79cd38069d89c2e457be99911e2a0ea3.zip
correcting wrong example
Diffstat (limited to 'activesupport/lib/active_support')
-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 d7a30cf123..e844cf50d1 100644
--- a/activesupport/lib/active_support/core_ext/class/inheritable_attributes.rb
+++ b/activesupport/lib/active_support/core_ext/class/inheritable_attributes.rb
@@ -29,7 +29,7 @@ end
# To opt out of the instance reader method, pass :instance_reader => false.
#
# class Person
-# cattr_accessor :hair_colors :instance_writer => false, :instance_reader => false
+# class_inheritable_accessor :hair_colors :instance_writer => false, :instance_reader => false
# end
#
# Person.new.hair_colors = [:brown] # => NoMethodError