diff options
author | Xavier Noria <fxn@hashref.com> | 2013-05-12 13:59:51 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2013-05-12 13:59:51 +0200 |
commit | 19c6c8f5d7feb4c25e82abb2460c7516d561062a (patch) | |
tree | a63b1b3e99c780ece0295b73d0bc92118b163b66 /activemodel | |
parent | 593666b5d5cc2c3e887f69fd93d9b5dd75a8dc62 (diff) | |
download | rails-19c6c8f5d7feb4c25e82abb2460c7516d561062a.tar.gz rails-19c6c8f5d7feb4c25e82abb2460c7516d561062a.tar.bz2 rails-19c6c8f5d7feb4c25e82abb2460c7516d561062a.zip |
respond_to -> respond to in a message from AM::Lint
The error message uses English to say that the object should respond
to a certain method. You check that with respond_to, but that's not
English.
This makes this error message also consistent with the rest.
Diffstat (limited to 'activemodel')
-rw-r--r-- | activemodel/lib/active_model/lint.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/lib/active_model/lint.rb b/activemodel/lib/active_model/lint.rb index 1be2913f0b..46b446dc08 100644 --- a/activemodel/lib/active_model/lint.rb +++ b/activemodel/lib/active_model/lint.rb @@ -98,7 +98,7 @@ module ActiveModel private def model - assert @model.respond_to?(:to_model), "The object should respond_to to_model" + assert @model.respond_to?(:to_model), "The object should respond to to_model" @model.to_model end |