Permalink
Browse files

Fixed the numericality message to point to the right place for liveva…

…lidations js
  • Loading branch information...
1 parent 0d7f3ae commit 5cc92cac215152713105b96b1ff7cab15322b697 @jondkinney jondkinney committed Apr 10, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/live_validations/adapters/livevalidation_dot_com.rb
@@ -16,7 +16,7 @@ class LivevalidationDotCom < LiveValidations::AdapterBase
end
validates :numericality do |v, attribute|
- v[:validators][attribute]["Numericality"] = {:onlyInteger => true, :failureMessage => v.message_for(attribute, :not_a_number)}
+ v[:validators][attribute]["Numericality"] = {:onlyInteger => true, :notANumberMessage => v.message_for(attribute, :not_a_number)}
end
validates :length do |v, attribute|

0 comments on commit 5cc92ca

Please sign in to comment.