aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2015-04-05 17:23:36 +0200
committerYves Senn <yves.senn@gmail.com>2015-04-05 17:23:36 +0200
commit70b7e281deeb08f20b2254fd779ddfa0945358f2 (patch)
treeee3521bcc2b6d8f4ef1ac5b7cbf8c3e1e1fdd73b /activemodel
parent9cc41c36f7643e6d928075e32b660de69b31a86a (diff)
downloadrails-70b7e281deeb08f20b2254fd779ddfa0945358f2.tar.gz
rails-70b7e281deeb08f20b2254fd779ddfa0945358f2.tar.bz2
rails-70b7e281deeb08f20b2254fd779ddfa0945358f2.zip
fix typo in deprecation message. [Robin Dupret]
Diffstat (limited to 'activemodel')
-rw-r--r--activemodel/lib/active_model/validations/length.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/lib/active_model/validations/length.rb b/activemodel/lib/active_model/validations/length.rb
index 060919fac3..c22a58f9e1 100644
--- a/activemodel/lib/active_model/validations/length.rb
+++ b/activemodel/lib/active_model/validations/length.rb
@@ -23,7 +23,7 @@ module ActiveModel
if options[:tokenizer]
ActiveSupport::Deprecation.warn(<<-EOS.strip_heredoc)
The `:tokenizer` option is deprecated, and will be removed in Rails 5.1.
- You can achieve the same functionality be defining an instance method
+ You can achieve the same functionality by defining an instance method
with the value that you want to validate the length of. For example,
validates_length_of :essay, minimum: 100,