Skip to content
This repository has been archived by the owner on Jul 22, 2019. It is now read-only.

Commit

Permalink
Upgrade to devise 4.2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
levent committed Oct 7, 2016
1 parent a9b9acb commit 574c0b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ def ensure_domain
end

def configure_permitted_parameters
devise_parameter_sanitizer.for(:sign_up) << :name
devise_parameter_sanitizer.permit(:sign_up, keys: [:username])
end
end
2 changes: 1 addition & 1 deletion spec/rails_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
# https://relishapp.com/rspec/rspec-rails/docs
Capybara.default_host = "http://app.agileista.local"
config.infer_spec_type_from_file_location!
config.include Devise::TestHelpers, type: :controller
config.include Devise::Test::ControllerHelpers, type: :controller
config.include SpecHelpers::ModelsHelper
config.include Warden::Test::Helpers
Warden.test_mode!
Expand Down

0 comments on commit 574c0b8

Please sign in to comment.