Module: ActionView::Helpers::FormTagHelper
- Defined in:
- lib/protect_via_honeypots/form_tag_helper_extensions.rb
Instance Method Summary collapse
Instance Method Details
#extra_tags_for_form(html_options) ⇒ Object
27 28 29 30 31 32 33 |
# File 'lib/protect_via_honeypots/form_tag_helper_extensions.rb', line 27 def () = ProtectViaHoneypots::HONEYPOT_TAGS.collect do |tag| tag(:input, :type => "text", :name => tag, :value => "") end () + content_tag(:div, , :style => 'margin:0;padding:0;display:none') end |
#old_extra_tags_for_form ⇒ Object
26 |
# File 'lib/protect_via_honeypots/form_tag_helper_extensions.rb', line 26 alias_method :old_extra_tags_for_form, :extra_tags_for_form |