diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-05-07 06:59:03 -0700 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-05-07 06:59:03 -0700 |
commit | af5d0e9e92f3fb818c73f1b8b991ea61ddc35dd4 (patch) | |
tree | 2695e4d262df1fdfc213a2c73fbee76f0b5e05be /config | |
parent | dc41ffa309fee7697693cfaea42486707d98f5f0 (diff) | |
parent | a50d96a84149c34c85f9f02cacfd2d15582c8eff (diff) | |
download | gitlab-ce-af5d0e9e92f3fb818c73f1b8b991ea61ddc35dd4.tar.gz |
Merge pull request #3275 from Undev/feature/code_cleanup_remove_old_hashes
Code cleanup: Replace old hashes and remove trailing spaces
Diffstat (limited to 'config')
-rw-r--r-- | config/application.rb | 2 | ||||
-rw-r--r-- | config/environments/production.rb | 4 | ||||
-rw-r--r-- | config/initializers/devise.rb | 18 | ||||
-rw-r--r-- | config/routes.rb | 3 |
4 files changed, 13 insertions, 14 deletions
diff --git a/config/application.rb b/config/application.rb index 8f7d9c07ac8..d86fe561fa9 100644 --- a/config/application.rb +++ b/config/application.rb @@ -4,7 +4,7 @@ require 'rails/all' if defined?(Bundler) # If you precompile assets before deploying to production, use this line - # Bundler.require(*Rails.groups(:assets => %w(development test))) + # Bundler.require(*Rails.groups(assets: %w(development test))) # If you want your assets lazily compiled in production, use this line Bundler.require(:default, :assets, Rails.env) end diff --git a/config/environments/production.rb b/config/environments/production.rb index 6ae0324fa8c..dc8e25593ae 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -68,8 +68,8 @@ Gitlab::Application.configure do config.action_mailer.delivery_method = :sendmail # Defaults to: # # config.action_mailer.sendmail_settings = { - # # :location => '/usr/sbin/sendmail', - # # :arguments => '-i -t' + # # location: '/usr/sbin/sendmail', + # # arguments: '-i -t' # # } config.action_mailer.perform_deliveries = true config.action_mailer.raise_delivery_errors = true diff --git a/config/initializers/devise.rb b/config/initializers/devise.rb index 5714407f393..e0938a9640c 100644 --- a/config/initializers/devise.rb +++ b/config/initializers/devise.rb @@ -94,7 +94,7 @@ Devise.setup do |config| # config.extend_remember_period = false # Options to be passed to the created cookie. For instance, you can set - # :secure => true in order to force SSL only cookies. + # secure: true in order to force SSL only cookies. # config.cookie_options = {} # ==> Configuration for :validatable @@ -202,18 +202,18 @@ Devise.setup do |config| # config.warden do |manager| # manager.failure_app = AnotherApp # manager.intercept_401 = false - # manager.default_strategies(:scope => :user).unshift :some_external_strategy + # manager.default_strategies(scope: :user).unshift :some_external_strategy # end if Gitlab.config.ldap.enabled config.omniauth :ldap, - :host => Gitlab.config.ldap['host'], - :base => Gitlab.config.ldap['base'], - :uid => Gitlab.config.ldap['uid'], - :port => Gitlab.config.ldap['port'], - :method => Gitlab.config.ldap['method'], - :bind_dn => Gitlab.config.ldap['bind_dn'], - :password => Gitlab.config.ldap['password'] + host: Gitlab.config.ldap['host'], + base: Gitlab.config.ldap['base'], + uid: Gitlab.config.ldap['uid'], + port: Gitlab.config.ldap['port'], + method: Gitlab.config.ldap['method'], + bind_dn: Gitlab.config.ldap['bind_dn'], + password: Gitlab.config.ldap['password'] end Gitlab.config.omniauth.providers.each do |provider| diff --git a/config/routes.rb b/config/routes.rb index 33b4ac1a3bd..f8881afb669 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -179,8 +179,7 @@ Gitlab::Application.routes.draw do resources :compare, only: [:index, :create] resources :blame, only: [:show], constraints: {id: /.+/} resources :graph, only: [:show], constraints: {id: /(?:[^.]|\.(?!json$))+/, format: /json/} - match "/compare/:from...:to" => "compare#show", as: "compare", - :via => [:get, :post], constraints: {from: /.+/, to: /.+/} + match "/compare/:from...:to" => "compare#show", as: "compare", via: [:get, :post], constraints: {from: /.+/, to: /.+/} resources :wikis, only: [:show, :edit, :destroy, :create] do collection do |