diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-07-17 01:48:51 +0200 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-07-18 14:46:20 +0200 |
commit | e00da96c88314df79600e7848ae6fe7e4a29af2e (patch) | |
tree | 48d3da01b161442812fb83939f4cbeafdf9be7e3 /config | |
parent | 3248c9fb56e5d5cb8980cb37effec1ee2f4f664a (diff) | |
download | gitlab-ce-e00da96c88314df79600e7848ae6fe7e4a29af2e.tar.gz |
Improve manual actions code and add model, service and feature tests
Manual actions are accessible from:
- Pipelines
- Builds
- Environments
- Deployments
Diffstat (limited to 'config')
-rw-r--r-- | config/initializers/relative_naming_ci_namespace.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/config/initializers/relative_naming_ci_namespace.rb b/config/initializers/relative_naming_ci_namespace.rb new file mode 100644 index 00000000000..59abe1b9b91 --- /dev/null +++ b/config/initializers/relative_naming_ci_namespace.rb @@ -0,0 +1,16 @@ +# Description: https://coderwall.com/p/heed_q/rails-routing-and-namespaced-models +# +# This allows us to use CI ActiveRecord objects in all routes and use it: +# - [project.namespace, project, build] +# +# instead of: +# - namespace_project_build_path(project.namespace, project, build) +# +# Without that, Ci:: namespace is used for resolving routes: +# - namespace_project_ci_build_path(project.namespace, project, build) + +module Ci + def self.use_relative_model_naming? + true + end +end |