rubocop autocorret to get tests green

This commit is contained in:
Priit Tamboom 2014-10-10 15:10:05 +03:00
parent c0caf53878
commit 2d6ed7fa45
24 changed files with 105 additions and 112 deletions

View file

@ -41,12 +41,12 @@ Devise.setup do |config|
# Configure which authentication keys should be case-insensitive.
# These keys will be downcased upon creating or modifying a user and when used
# to authenticate or find a user. Default is :email.
config.case_insensitive_keys = [ :email ]
config.case_insensitive_keys = [:email]
# Configure which authentication keys should have whitespace stripped.
# These keys will have whitespace before and after removed upon creating or
# modifying a user and when used to authenticate or find a user. Default is :email.
config.strip_whitespace_keys = [ :email ]
config.strip_whitespace_keys = [:email]
# Tell if authentication through request.params is enabled. True by default.
# It can be set to an array that will enable params authentication only for the

View file

@ -31,7 +31,7 @@ Rails.application.routes.draw do
root 'domains#index'
end
end
## CLIENT ROUTES
namespace(:client) do
@ -66,10 +66,10 @@ Rails.application.routes.draw do
end
authenticated :user do
root :to => 'admin/domains#index', :as => :authenticated_root
root to: 'admin/domains#index', as: :authenticated_root
end
root :to => redirect('login')
root to: redirect('login')
# The priority is based upon order of creation: first created -> highest priority.
# See how all your routes lay out with "rake routes".