From d5802adf8345aa85a8f17c5e0b9d42d85acf6758 Mon Sep 17 00:00:00 2001 From: Vijay Dev Date: Thu, 11 Oct 2012 00:43:17 +0530 Subject: [PATCH] Revert "Fix all examples in comments in active_model attribute methods" This reverts commit 93b1ca8bd34993f8958219f13c195f5acf8e55f6. --- activemodel/lib/active_model/attribute_methods.rb | 12 ++++++------ 1 file 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 ClassMethods # # attr_accessor :name # attribute_method_prefix 'clear_' - # define_attribute_methods [:name] + # define_attribute_methods :name # # private # @@ -124,7 +124,7 @@ def attribute_method_prefix(*prefixes) # # attr_accessor :name # attribute_method_suffix '_short?' - # define_attribute_methods [:name] + # define_attribute_methods :name # # private # @@ -160,7 +160,7 @@ def attribute_method_suffix(*suffixes) # # attr_accessor :name # attribute_method_affix prefix: 'reset_', suffix: '_to_default!' - # define_attribute_methods [:name] + # define_attribute_methods :name # # private # @@ -186,7 +186,7 @@ def attribute_method_affix(*affixes) # # attr_accessor :name # attribute_method_suffix '_short?' - # define_attribute_methods [:name] + # define_attribute_methods :name # # alias_attribute :nickname, :name # @@ -256,7 +256,7 @@ def define_attribute_methods(*attr_names) # # 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 @@ def define_attribute_method(attr_name) # # attr_accessor :name # attribute_method_suffix '_short?' - # define_attribute_method [:name] + # define_attribute_method :name # # private # -- GitLab