Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix grammar in deprecation message [ci skip]

  • Loading branch information...
commit ffd3289e73dc1106ebc4b00a3f35accaad01b1ac 1 parent 7b0c45d
@vijaydev vijaydev authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 activerecord/lib/active_record/base.rb
View
6 activerecord/lib/active_record/base.rb
@@ -1061,7 +1061,7 @@ def method_missing(method_id, *arguments, &block)
super unless all_attributes_exists?(attribute_names)
if !arguments.first.is_a?(Hash) && arguments.size < attribute_names.size
ActiveSupport::Deprecation.warn(<<-eowarn)
-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.
+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.
eowarn
end
if match.finder?
@@ -1077,8 +1077,8 @@ def method_missing(method_id, *arguments, &block)
if arguments.size < attribute_names.size
ActiveSupport::Deprecation.warn(
"Calling dynamic scope 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."
+ "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."
)
end
if match.scope?

0 comments on commit ffd3289

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