Welcome to mirror list, hosted at ThFree Co, Russian Federation.

relative_naming_ci_namespace.rb « initializers « config - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7380597722ac9d3f031edb5c3e45c6941c77a9e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# frozen_string_literal: true

# 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:
# - project_job_path(project, build)
#
# Without that, Ci:: namespace is used for resolving routes:
# - project_ci_build_path(project, build)

module Ci
  def self.use_relative_model_naming?
    true
  end
end