Skip to content
This repository
Browse code

Fix all examples in comments in active_model attribute methods

  • Loading branch information...
commit 93b1ca8bd34993f8958219f13c195f5acf8e55f6 1 parent 1c02b98
Nick Rowe nixterrimus authored

Showing 1 changed file with 6 additions and 6 deletions. Show diff stats Hide diff stats

  1. +6 6 activemodel/lib/active_model/attribute_methods.rb
12 activemodel/lib/active_model/attribute_methods.rb
@@ -88,7 +88,7 @@ module ClassMethods
88 88 #
89 89 # attr_accessor :name
90 90 # attribute_method_prefix 'clear_'
91   - # define_attribute_methods :name
  91 + # define_attribute_methods [:name]
92 92 #
93 93 # private
94 94 #
@@ -124,7 +124,7 @@ def attribute_method_prefix(*prefixes)
124 124 #
125 125 # attr_accessor :name
126 126 # attribute_method_suffix '_short?'
127   - # define_attribute_methods :name
  127 + # define_attribute_methods [:name]
128 128 #
129 129 # private
130 130 #
@@ -160,7 +160,7 @@ def attribute_method_suffix(*suffixes)
160 160 #
161 161 # attr_accessor :name
162 162 # attribute_method_affix prefix: 'reset_', suffix: '_to_default!'
163   - # define_attribute_methods :name
  163 + # define_attribute_methods [:name]
164 164 #
165 165 # private
166 166 #
@@ -186,7 +186,7 @@ def attribute_method_affix(*affixes)
186 186 #
187 187 # attr_accessor :name
188 188 # attribute_method_suffix '_short?'
189   - # define_attribute_methods :name
  189 + # define_attribute_methods [:name]
190 190 #
191 191 # alias_attribute :nickname, :name
192 192 #
@@ -256,7 +256,7 @@ def define_attribute_methods(*attr_names)
256 256 # # Call to define_attribute_method must appear after the
257 257 # # attribute_method_prefix, attribute_method_suffix or
258 258 # # attribute_method_affix declares.
259   - # define_attribute_method :name
  259 + # define_attribute_method [:name]
260 260 #
261 261 # private
262 262 #
@@ -293,7 +293,7 @@ def define_attribute_method(attr_name)
293 293 #
294 294 # attr_accessor :name
295 295 # attribute_method_suffix '_short?'
296   - # define_attribute_method :name
  296 + # define_attribute_method [:name]
297 297 #
298 298 # private
299 299 #

0 comments on commit 93b1ca8

Please sign in to comment.
Something went wrong with that request. Please try again.