gitlab-org--gitlab-foss/app
Stan Hu 681af5bc4f Fix Error 500 when application settings are saved
Due to a Rails bug, fetching the application settings from Redis
may prevent the attribute methods from being loaded for the `ApplicationSetting`
model. More details here: https://github.com/rails/rails/issues/27348

There was also a secondary problem introduced by overriding these
association methods which caused all default visibility levels to be
set to `nil`. Before, the previous implementation allowed the string
"20" to be saved as an integer, while now a table lookup happens
before that. We fix this by enforcing the integer value in the
controller and default to PRIVATE.

Closes #29674
2017-03-18 15:39:48 -07:00
..
assets Merge branch '29586-pipelines-tabs' into 'master' 2017-03-17 19:57:04 +00:00
controllers Fix Error 500 when application settings are saved 2017-03-18 15:39:48 -07:00
finders Allow filtering by all started milestones 2017-03-15 17:02:38 +00:00
helpers Merge branch 'add-blob-copy-button' into 'master' 2017-03-16 23:03:37 +00:00
mailers
models Fix Error 500 when application settings are saved 2017-03-18 15:39:48 -07:00
policies use policies to protect sending email 2017-03-09 11:49:53 -08:00
presenters
serializers
services Resolve "Extract logic of who should receive notification into separate classes" 2017-03-17 17:56:04 +00:00
uploaders Handle relative and absolute Upload paths in the Uploaders 2017-03-06 14:41:10 -05:00
validators Reserve few project and nested group paths 2017-03-13 15:47:24 +02:00
views Merge branch 'boards-blank-state-template-in-js' into 'master' 2017-03-17 14:45:01 +00:00
workers adds queue option to push bulk in authorized projects worker 2017-03-10 10:13:59 +00:00