Skip to content

Commit

Permalink
change attached_validators to be checked by w3c markup validation ser…
Browse files Browse the repository at this point in the history
…vice
  • Loading branch information
guillaume belleguic authored and grimen committed Nov 19, 2009
1 parent 628f60f commit 21b3f88
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/validatious-on-rails/helpers.rb
Expand Up @@ -22,8 +22,7 @@ def attach_validator_for(object_name, method, options = {})
#
def attached_validators
if @content_for_validatious.present?
content_tag(:script, @content_for_validatious,
:type => 'text/javascript', :id => 'custom_validators')
javascript_tag(@content_for_validatious, :id => 'custom_validators')
end
end
alias :javascript_for_validatious :attached_validators
Expand Down

0 comments on commit 21b3f88

Please sign in to comment.