summaryrefslogtreecommitdiff
path: root/config/application.rb
diff options
context:
space:
mode:
authorPeter Golm <golm.peter@gmail.com>2014-01-09 13:03:22 +0100
committerPeter Golm <golm.peter@gmail.com>2014-01-09 13:03:22 +0100
commit5f034015bbaa0718c6b85b9291c7cbd728329666 (patch)
tree616df978e7d679a6a4c327aa8d7ce37ae82641d4 /config/application.rb
parent9310e5ccbf98f0c59a05f2b0a47faab9c84c7577 (diff)
parent1f838a4f98fafa80ae5cfd7759b883b00870072f (diff)
downloadgitlab-ci-5f034015bbaa0718c6b85b9291c7cbd728329666.tar.gz
Merge github.com:gitlabhq/gitlab-ci into NewCharts
Conflicts: app/controllers/projects_controller.rb config/routes.rb
Diffstat (limited to 'config/application.rb')
-rw-r--r--config/application.rb12
1 files changed, 3 insertions, 9 deletions
diff --git a/config/application.rb b/config/application.rb
index 3e5c811..ad29b57 100644
--- a/config/application.rb
+++ b/config/application.rb
@@ -2,12 +2,7 @@ require File.expand_path('../boot', __FILE__)
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)))
- # If you want your assets lazily compiled in production, use this line
- Bundler.require(:default, :assets, Rails.env)
-end
+Bundler.require(:default, Rails.env)
module GitlabCi
class Application < Rails::Application
@@ -22,9 +17,6 @@ module GitlabCi
# :all can be used as a placeholder for all plugins not explicitly named.
# config.plugins = [ :exception_notification, :ssl_requirement, :all ]
- # Activate observers that should always be running.
- # config.active_record.observers = :cacher, :garbage_collector, :forum_observer
-
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
# config.time_zone = 'Central Time (US & Canada)'
@@ -58,5 +50,7 @@ module GitlabCi
# Version of your assets, change this if you want to expire all your assets
config.assets.version = '1.0'
+
+ config.active_record.whitelist_attributes = false
end
end