diff options
author | Francesco Rodriguez <lrodriguezsanc@gmail.com> | 2012-05-14 11:38:23 -0500 |
---|---|---|
committer | Francesco Rodriguez <lrodriguezsanc@gmail.com> | 2012-05-14 11:38:23 -0500 |
commit | 00c94d7d94ba9c32a10fd52885c23d434aa99951 (patch) | |
tree | 249dafa261568dcb1b191be5756ce0708c7e0320 /guides/source | |
parent | 05234b358f2d8fabb41b16a4a7a8d676bc31dcd3 (diff) | |
download | rails-00c94d7d94ba9c32a10fd52885c23d434aa99951.tar.gz rails-00c94d7d94ba9c32a10fd52885c23d434aa99951.tar.bz2 rails-00c94d7d94ba9c32a10fd52885c23d434aa99951.zip |
updating define_attribute_methods documentation
Diffstat (limited to 'guides/source')
-rw-r--r-- | guides/source/active_model_basics.textile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/guides/source/active_model_basics.textile b/guides/source/active_model_basics.textile index f140a8d2ac..d373f4ac85 100644 --- a/guides/source/active_model_basics.textile +++ b/guides/source/active_model_basics.textile @@ -20,7 +20,7 @@ class Person attribute_method_prefix 'reset_' attribute_method_suffix '_highest?' - define_attribute_methods ['age'] + define_attribute_methods 'age' attr_accessor :age @@ -99,7 +99,7 @@ require 'active_model' class Person include ActiveModel::Dirty - define_attribute_methods [:first_name, :last_name] + define_attribute_methods :first_name, :last_name def first_name @first_name |