Module: IidRoutes
- Included in:
- AlertManagement::Alert, Deployment, Issue, MergeRequest, Milestone, Operations::FeatureFlag, Operations::FeatureFlags::UserList
- Defined in:
- app/models/concerns/iid_routes.rb
Instance Method Summary collapse
-
#to_param ⇒ Object
This automagically enforces all related routes to use
iidinstead ofidIf you want to useiidfor some routes andidfor other routes, this module should not to be included, instead you should defineiidoridexplicitly at each route generators.
Instance Method Details
#to_param ⇒ Object
This automagically enforces all related routes to use iid instead of id If you want to use iid for some routes and id for other routes, this module should not to be included, instead you should define iid or id explicitly at each route generators. e.g. pipeline_path(project.id, pipeline.iid)
8 9 10 |
# File 'app/models/concerns/iid_routes.rb', line 8 def to_param iid.to_s end |