aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2012-10-11 00:43:17 +0530
committerVijay Dev <vijaydev.cse@gmail.com>2012-10-11 00:43:17 +0530
commitd5802adf8345aa85a8f17c5e0b9d42d85acf6758 (patch)
treec58300a228c335421b1a6437a8a35a67c0f396f4
parent2d554313409cf883313df15aecfcbfab4410daee (diff)
downloadrails-d5802adf8345aa85a8f17c5e0b9d42d85acf6758.tar.gz
rails-d5802adf8345aa85a8f17c5e0b9d42d85acf6758.tar.bz2
rails-d5802adf8345aa85a8f17c5e0b9d42d85acf6758.zip
Revert "Fix all examples in comments in active_model attribute methods"
This reverts commit 93b1ca8bd34993f8958219f13c195f5acf8e55f6.
-rw-r--r--activemodel/lib/active_model/attribute_methods.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/activemodel/lib/active_model/attribute_methods.rb b/activemodel/lib/active_model/attribute_methods.rb
index 5096a34dc1..975b4a69bb 100644
--- a/activemodel/lib/active_model/attribute_methods.rb
+++ b/activemodel/lib/active_model/attribute_methods.rb
@@ -88,7 +88,7 @@ module ActiveModel
#
# attr_accessor :name
# attribute_method_prefix 'clear_'
- # define_attribute_methods [:name]
+ # define_attribute_methods :name
#
# private
#
@@ -124,7 +124,7 @@ module ActiveModel
#
# attr_accessor :name
# attribute_method_suffix '_short?'
- # define_attribute_methods [:name]
+ # define_attribute_methods :name
#
# private
#
@@ -160,7 +160,7 @@ module ActiveModel
#
# attr_accessor :name
# attribute_method_affix prefix: 'reset_', suffix: '_to_default!'
- # define_attribute_methods [:name]
+ # define_attribute_methods :name
#
# private
#
@@ -186,7 +186,7 @@ module ActiveModel
#
# attr_accessor :name
# attribute_method_suffix '_short?'
- # define_attribute_methods [:name]
+ # define_attribute_methods :name
#
# alias_attribute :nickname, :name
#
@@ -256,7 +256,7 @@ module ActiveModel
# # Call to define_attribute_method must appear after the
# # attribute_method_prefix, attribute_method_suffix or
# # attribute_method_affix declares.
- # define_attribute_method [:name]
+ # define_attribute_method :name
#
# private
#
@@ -293,7 +293,7 @@ module ActiveModel
#
# attr_accessor :name
# attribute_method_suffix '_short?'
- # define_attribute_method [:name]
+ # define_attribute_method :name
#
# private
#