Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix all examples in comments in active_model attribute methods

  • Loading branch information...
commit 93b1ca8bd34993f8958219f13c195f5acf8e55f6 1 parent 1c02b98
Nick Rowe nixterrimus authored
Showing with 6 additions and 6 deletions.
  1. +6 −6 activemodel/lib/active_model/attribute_methods.rb
12 activemodel/lib/active_model/attribute_methods.rb
View
@@ -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
#
Please sign in to comment.
Something went wrong with that request. Please try again.