Permalink
Browse files

correcting wrong example

  • Loading branch information...
1 parent 4b18d3c commit d55491c8449db994c421626166a7a174e0e83f64 Neeraj Singh committed with fxn Aug 6, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 activesupport/lib/active_support/core_ext/class/inheritable_attributes.rb
@@ -29,7 +29,7 @@ module ClassInheritableAttributes # :nodoc:
# 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

0 comments on commit d55491c

Please sign in to comment.