From 875f67528481a3b9bb2be891d9d44eaa741b6f2f Mon Sep 17 00:00:00 2001 From: Tim Wade Date: Fri, 24 Apr 2015 08:32:58 -0400 Subject: Fix grammar/style: pluralize 'each of its method' [ci skip] --- activemodel/lib/active_model/attribute_methods.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activemodel/lib/active_model/attribute_methods.rb') diff --git a/activemodel/lib/active_model/attribute_methods.rb b/activemodel/lib/active_model/attribute_methods.rb index 96be551264..83b073f0e4 100644 --- a/activemodel/lib/active_model/attribute_methods.rb +++ b/activemodel/lib/active_model/attribute_methods.rb @@ -23,7 +23,7 @@ module ActiveModel # The requirements to implement ActiveModel::AttributeMethods are to: # # * include ActiveModel::AttributeMethods in your class. - # * Call each of its method you want to add, such as +attribute_method_suffix+ + # * Call each of its methods you want to add, such as +attribute_method_suffix+ # or +attribute_method_prefix+. # * Call +define_attribute_methods+ after the other methods are called. # * Define the various generic +_attribute+ methods that you have declared. -- cgit v1.2.3 From 37349f71adbeeef039101596a0e815bd1c04a65f Mon Sep 17 00:00:00 2001 From: Tim Wade Date: Fri, 24 Apr 2015 08:40:41 -0400 Subject: Fix grammar/style: break up long sentence. A conjunction was needed to make these sentences correct. Breaking them up seemed like a better option. [ci skip] --- activemodel/lib/active_model/attribute_methods.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'activemodel/lib/active_model/attribute_methods.rb') diff --git a/activemodel/lib/active_model/attribute_methods.rb b/activemodel/lib/active_model/attribute_methods.rb index 83b073f0e4..6b14d9702e 100644 --- a/activemodel/lib/active_model/attribute_methods.rb +++ b/activemodel/lib/active_model/attribute_methods.rb @@ -227,7 +227,7 @@ module ActiveModel # Declares the attributes that should be prefixed and suffixed by # ActiveModel::AttributeMethods. # - # To use, pass attribute names (as strings or symbols), be sure to declare + # To use, pass attribute names (as strings or symbols). Be sure to declare # +define_attribute_methods+ after you define any prefix, suffix or affix # methods, or they will not hook in. # @@ -255,7 +255,7 @@ module ActiveModel # Declares an attribute that should be prefixed and suffixed by # ActiveModel::AttributeMethods. # - # To use, pass an attribute name (as string or symbol), be sure to declare + # To use, pass an attribute name (as string or symbol). Be sure to declare # +define_attribute_method+ after you define any prefix, suffix or affix # method, or they will not hook in. # -- cgit v1.2.3 From ed6de3afcc8069bfa1e0c9098a3e5ed6ff532af4 Mon Sep 17 00:00:00 2001 From: Tim Wade Date: Fri, 24 Apr 2015 08:43:24 -0400 Subject: Fix grammar/style: use (v) fall back (on). [ci skip] --- activemodel/lib/active_model/attribute_methods.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activemodel/lib/active_model/attribute_methods.rb') diff --git a/activemodel/lib/active_model/attribute_methods.rb b/activemodel/lib/active_model/attribute_methods.rb index 6b14d9702e..dbd03e0f49 100644 --- a/activemodel/lib/active_model/attribute_methods.rb +++ b/activemodel/lib/active_model/attribute_methods.rb @@ -363,7 +363,7 @@ module ActiveModel end # Define a method `name` in `mod` that dispatches to `send` - # using the given `extra` args. This fallbacks `define_method` + # using the given `extra` args. This falls back on `define_method` # and `send` if the given names cannot be compiled. def define_proxy_call(include_private, mod, name, send, *extra) #:nodoc: defn = if name =~ NAME_COMPILABLE_REGEXP -- cgit v1.2.3 From f207d948c86599bb4aaab5fe07a612455d865027 Mon Sep 17 00:00:00 2001 From: Tim Wade Date: Fri, 24 Apr 2015 09:02:38 -0400 Subject: Fix grammar/style: assigns/declares -> assignments/declarations. [ci skip] --- activemodel/lib/active_model/attribute_methods.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'activemodel/lib/active_model/attribute_methods.rb') diff --git a/activemodel/lib/active_model/attribute_methods.rb b/activemodel/lib/active_model/attribute_methods.rb index dbd03e0f49..ff7280f9e5 100644 --- a/activemodel/lib/active_model/attribute_methods.rb +++ b/activemodel/lib/active_model/attribute_methods.rb @@ -239,7 +239,7 @@ module ActiveModel # # # Call to define_attribute_methods must appear after the # # attribute_method_prefix, attribute_method_suffix or - # # attribute_method_affix declares. + # # attribute_method_affix declarations. # define_attribute_methods :name, :age, :address # # private @@ -267,7 +267,7 @@ module ActiveModel # # # Call to define_attribute_method must appear after the # # attribute_method_prefix, attribute_method_suffix or - # # attribute_method_affix declares. + # # attribute_method_affix declarations. # define_attribute_method :name # # private @@ -419,7 +419,7 @@ module ActiveModel # returned by attributes, as though they were first-class # methods. So a +Person+ class with a +name+ attribute can for example use # Person#name and Person#name= and never directly use - # the attributes hash -- except for multiple assigns with + # the attributes hash -- except for multiple assignments with # ActiveRecord::Base#attributes=. # # It's also possible to instantiate related objects, so a Client -- cgit v1.2.3