summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorAndrey Kumanyaev <me@zzet.org>2013-05-05 18:01:10 +0400
committerAndrey Kumanyaev <me@zzet.org>2013-05-05 18:01:10 +0400
commit67ccc8b52aceebea9c0cb22b3277daf0b467c78e (patch)
tree6139a7674fe0f9d70a0af51c383fd72aa91cc54c /config
parent493b5ff011d5788f669adabf978a40b49b8cf6a3 (diff)
downloadgitlab-ce-67ccc8b52aceebea9c0cb22b3277daf0b467c78e.tar.gz
Replace old hashes with new 1.9 ruby hashes (rebase)
Diffstat (limited to 'config')
-rw-r--r--config/application.rb2
-rw-r--r--config/environments/production.rb4
-rw-r--r--config/initializers/devise.rb18
-rw-r--r--config/routes.rb3
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 8bd6307357a..ad0f661b5ed 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