71777a4a18
Rename other URL generators admin_builds_path -> admin_jobs_path Fix tests and more renaming Fix more tests Also change build_id to job_id in the controller
16 lines
482 B
Ruby
16 lines
482 B
Ruby
# 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_job_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
|