Use 'Feature's to toggle optional functionality

TODO: Wrap every incomplete project in a feature, and _turn it off_.
This commit is contained in:
James Mason 2017-11-03 20:37:42 -07:00
parent a7fce677fc
commit 0aa782711d
No known key found for this signature in database
GPG key ID: 1B3951886C449023
5 changed files with 19 additions and 3 deletions

View file

@ -12,7 +12,8 @@
= f.input :name, input_html: { required: true }, hint: 'This is your real name'
= f.input :password, input_html: { required: true }
= f.input :password_confirmation, input_html: { required: true }
= recaptcha_tags
- Feature.with(:recaptcha) do
= recaptcha_tags
%p.text-right
= f.action :submit, as: :button, label: 'Sign Up', button_html: { class: 'btn btn-success' }