Skip to content
This repository
Browse code

fix grammar in deprecation message [ci skip]

  • Loading branch information...
commit ffd3289e73dc1106ebc4b00a3f35accaad01b1ac 1 parent 7b0c45d
Vijay Dev authored May 01, 2012

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

  1. 6  activerecord/lib/active_record/base.rb
6  activerecord/lib/active_record/base.rb
@@ -1061,7 +1061,7 @@ def method_missing(method_id, *arguments, &block)
1061 1061
             super unless all_attributes_exists?(attribute_names)
1062 1062
             if !arguments.first.is_a?(Hash) && arguments.size < attribute_names.size
1063 1063
               ActiveSupport::Deprecation.warn(<<-eowarn)
1064  
-Calling dynamic finder with less number of arguments than the number of attributes in method name is deprecated and will raise an ArguementError in the next version of Rails. Please passing `nil' to the argument you want it to be nil.
  1064
+Calling dynamic finder with less number of arguments than the number of attributes in the method name is deprecated and will raise an ArgumentError in the next version of Rails. Please pass `nil' explicitly to the arguments that are left out.
1065 1065
                 eowarn
1066 1066
             end
1067 1067
             if match.finder?
@@ -1077,8 +1077,8 @@ def method_missing(method_id, *arguments, &block)
1077 1077
             if arguments.size < attribute_names.size
1078 1078
               ActiveSupport::Deprecation.warn(
1079 1079
                 "Calling dynamic scope with less number of arguments than the number of attributes in " \
1080  
-                "method name is deprecated and will raise an ArguementError in the next version of Rails. " \
1081  
-                "Please passing `nil' to the argument you want it to be nil."
  1080
+                "the method name is deprecated and will raise an ArgumentError in the next version of Rails. " \
  1081
+                "Please pass `nil' explicitly to the arguments that are left out."
1082 1082
               )
1083 1083
             end
1084 1084
             if match.scope?

0 notes on commit ffd3289

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