Commit 24bbc96f5cf07b1748d30d60cfb8f8bfa7275b81
1 parent
ce2f073d
Exists in
colab
and in
4 other branches
Coveralls removed from Cucumber tests and better approach to strong params with Devise
Showing
2 changed files
with
2 additions
and
7 deletions
Show diff stats
app/controllers/application_controller.rb
... | ... | @@ -13,7 +13,7 @@ class ApplicationController < ActionController::Base |
13 | 13 | # Since creating the controllers looks wronger than not testing this two |
14 | 14 | # lines. I think we can live without 100% of coverage |
15 | 15 | def configure_permitted_parameters |
16 | - devise_parameter_sanitizer.for(:sign_up) { |u| u.permit(:name, :email, :password, :password_confirmation) } | |
17 | - devise_parameter_sanitizer.for(:account_update) { |u| u.permit(:name, :email, :password, :password_confirmation, :current_password) } | |
16 | + devise_parameter_sanitizer.for(:sign_up) << :name | |
17 | + devise_parameter_sanitizer.for(:account_update) << :name | |
18 | 18 | end |
19 | 19 | end | ... | ... |
features/support/env.rb