diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-05-14 09:50:21 -0700 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-05-14 09:50:21 -0700 |
commit | c5bcb0de6b5a805a3c9556684715b5cd463dc0c8 (patch) | |
tree | 249dafa261568dcb1b191be5756ce0708c7e0320 /guides | |
parent | 017632fe2b45fca68685bed2dabfa97bb6722351 (diff) | |
parent | 00c94d7d94ba9c32a10fd52885c23d434aa99951 (diff) | |
download | rails-c5bcb0de6b5a805a3c9556684715b5cd463dc0c8.tar.gz rails-c5bcb0de6b5a805a3c9556684715b5cd463dc0c8.tar.bz2 rails-c5bcb0de6b5a805a3c9556684715b5cd463dc0c8.zip |
Merge pull request #6220 from frodsan/pass_multiple_value
Allow define_attribute_methods to pass multiple values
Diffstat (limited to 'guides')
-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 |