aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib/active_model/attribute_methods.rb
diff options
context:
space:
mode:
authorNick Rowe <nixterrimus@dcxn.com>2012-10-02 15:35:12 -0700
committerNick Rowe <nixterrimus@dcxn.com>2012-10-02 15:35:12 -0700
commit93b1ca8bd34993f8958219f13c195f5acf8e55f6 (patch)
tree17eadf2fec6872d07860df1dab18bd7b778e57b0 /activemodel/lib/active_model/attribute_methods.rb
parent1c02b988641c201308e6b3de6457128878e47bd5 (diff)
downloadrails-93b1ca8bd34993f8958219f13c195f5acf8e55f6.tar.gz
rails-93b1ca8bd34993f8958219f13c195f5acf8e55f6.tar.bz2
rails-93b1ca8bd34993f8958219f13c195f5acf8e55f6.zip
Fix all examples in comments in active_model attribute methods
Diffstat (limited to 'activemodel/lib/active_model/attribute_methods.rb')
-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 975b4a69bb..5096a34dc1 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
#