1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

rename _snowman to _e

This commit is contained in:
wycats 2010-08-09 12:06:25 -07:00
parent 6767946374
commit 7171161124
3 changed files with 3 additions and 3 deletions

View file

@ -538,7 +538,7 @@ module ActionView
def extra_tags_for_form(html_options)
snowman_tag = tag(:input, :type => "hidden",
:name => "_snowman", :value => "☃".html_safe)
:name => "_e", :value => "☃".html_safe)
method = html_options.delete("method").to_s

View file

@ -1513,7 +1513,7 @@ class FormHelperTest < ActionView::TestCase
def snowman(method = nil)
txt = %{<div style="margin:0;padding:0;display:inline">}
txt << %{<input name="_snowman" type="hidden" value="&#9731;" />}
txt << %{<input name="_e" type="hidden" value="&#9731;" />}
txt << %{<input name="_method" type="hidden" value="#{method}" />} if method
txt << %{</div>}
end

View file

@ -12,7 +12,7 @@ class FormTagHelperTest < ActionView::TestCase
method = options[:method]
txt = %{<div style="margin:0;padding:0;display:inline">}
txt << %{<input name="_snowman" type="hidden" value="&#9731;" />}
txt << %{<input name="_e" type="hidden" value="&#9731;" />}
txt << %{<input name="_method" type="hidden" value="#{method}" />} if method
txt << %{</div>}
end