Skip to content

Commit

Permalink
Remove HTML ID for spinner (hidden) input (closes #115) + add webrick…
Browse files Browse the repository at this point in the history
… to run demo app in newer Rubies
  • Loading branch information
markets committed Mar 4, 2023
1 parent 327f9ea commit 4291166
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions invisible_captcha.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ Gem::Specification.new do |spec|

spec.add_development_dependency 'rspec-rails'
spec.add_development_dependency 'appraisal'
spec.add_development_dependency 'webrick'
end
2 changes: 1 addition & 1 deletion lib/invisible_captcha/view_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def build_invisible_captcha(honeypot = nil, scope = nil, options = {})
concat label_tag(build_label_name(honeypot, scope), label)
concat text_field_tag(build_input_name(honeypot, scope), nil, default_honeypot_options.merge(options))
if InvisibleCaptcha.spinner_enabled
concat hidden_field_tag("spinner", session[:invisible_captcha_spinner])
concat hidden_field_tag("spinner", session[:invisible_captcha_spinner], id: nil)
end
end
end
Expand Down

0 comments on commit 4291166

Please sign in to comment.