Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix "validates_length_of :is" for jQuery adapter.

  • Loading branch information...
commit 1c873e007b41ccc458a691b08c72e59cc16079b8 1 parent dd5fb17
@htanata htanata authored committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/live_validations/adapters/jquery_validations.rb
View
2  lib/live_validations/adapters/jquery_validations.rb
@@ -36,7 +36,7 @@ class JqueryValidations < LiveValidations::AdapterBase
if v.callback.options[:is]
length = v.callback.options[:is]
- add_custom_rule(v, "lengthIs#{length}", "return value.length == #{length}", "Please enter exactly #{length} characters.")
+ add_custom_rule(v, attribute, "lengthIs#{length}", "return value.length == #{length}", "Please enter exactly #{length} characters.")
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.