2016-08-24 12:49:21 +05:30
|
|
|
# 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:
|
2017-09-10 17:25:29 +05:30
|
|
|
# - project_job_path(project, build)
|
2016-08-24 12:49:21 +05:30
|
|
|
#
|
|
|
|
# Without that, Ci:: namespace is used for resolving routes:
|
2017-09-10 17:25:29 +05:30
|
|
|
# - project_ci_build_path(project, build)
|
2016-08-24 12:49:21 +05:30
|
|
|
|
|
|
|
module Ci
|
|
|
|
def self.use_relative_model_naming?
|
|
|
|
true
|
|
|
|
end
|
|
|
|
end
|