From 70b7e281deeb08f20b2254fd779ddfa0945358f2 Mon Sep 17 00:00:00 2001 From: Yves Senn Date: Sun, 5 Apr 2015 17:23:36 +0200 Subject: fix typo in deprecation message. [Robin Dupret] --- activemodel/lib/active_model/validations/length.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activemodel') 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, -- cgit v1.2.3