@@ -23,7 +23,7 @@ class MissingAttributeError < NoMethodError
2323 # The requirements to implement <tt>ActiveModel::AttributeMethods</tt> are to:
2424 #
2525 # * <tt>include ActiveModel::AttributeMethods</tt> in your class.
26- # * Call each of its method you want to add, such as +attribute_method_suffix+
26+ # * Call each of its methods you want to add, such as +attribute_method_suffix+
2727 # or +attribute_method_prefix+.
2828 # * Call +define_attribute_methods+ after the other methods are called.
2929 # * Define the various generic +_attribute+ methods that you have declared.
@@ -227,7 +227,7 @@ def attribute_alias(name)
227227 # Declares the attributes that should be prefixed and suffixed by
228228 # ActiveModel::AttributeMethods.
229229 #
230- # To use, pass attribute names (as strings or symbols), be sure to declare
230+ # To use, pass attribute names (as strings or symbols). Be sure to declare
231231 # +define_attribute_methods+ after you define any prefix, suffix or affix
232232 # methods, or they will not hook in.
233233 #
@@ -239,7 +239,7 @@ def attribute_alias(name)
239239 #
240240 # # Call to define_attribute_methods must appear after the
241241 # # attribute_method_prefix, attribute_method_suffix or
242- # # attribute_method_affix declares .
242+ # # attribute_method_affix declarations .
243243 # define_attribute_methods :name, :age, :address
244244 #
245245 # private
@@ -255,7 +255,7 @@ def define_attribute_methods(*attr_names)
255255 # Declares an attribute that should be prefixed and suffixed by
256256 # ActiveModel::AttributeMethods.
257257 #
258- # To use, pass an attribute name (as string or symbol), be sure to declare
258+ # To use, pass an attribute name (as string or symbol). Be sure to declare
259259 # +define_attribute_method+ after you define any prefix, suffix or affix
260260 # method, or they will not hook in.
261261 #
@@ -267,7 +267,7 @@ def define_attribute_methods(*attr_names)
267267 #
268268 # # Call to define_attribute_method must appear after the
269269 # # attribute_method_prefix, attribute_method_suffix or
270- # # attribute_method_affix declares .
270+ # # attribute_method_affix declarations .
271271 # define_attribute_method :name
272272 #
273273 # private
@@ -363,7 +363,7 @@ def attribute_method_matchers_matching(method_name) #:nodoc:
363363 end
364364
365365 # Define a method `name` in `mod` that dispatches to `send`
366- # using the given `extra` args. This fallbacks `define_method`
366+ # using the given `extra` args. This falls back on `define_method`
367367 # and `send` if the given names cannot be compiled.
368368 def define_proxy_call ( include_private , mod , name , send , *extra ) #:nodoc:
369369 defn = if name =~ NAME_COMPILABLE_REGEXP
@@ -419,7 +419,7 @@ def plain?
419419 # returned by <tt>attributes</tt>, as though they were first-class
420420 # methods. So a +Person+ class with a +name+ attribute can for example use
421421 # <tt>Person#name</tt> and <tt>Person#name=</tt> and never directly use
422- # the attributes hash -- except for multiple assigns with
422+ # the attributes hash -- except for multiple assignments with
423423 # <tt>ActiveRecord::Base#attributes=</tt>.
424424 #
425425 # It's also possible to instantiate related objects, so a <tt>Client</tt>
0 commit comments