Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
|
|
Tweak cluster helper and refactor its specs.
|
|
- extends presenters to include update endpoint path
- sends path to the client on clusters clusters show view.
|
|
Use presenters instead otherwise we will have x2 overides in EE
|
|
Refacotr project or group specific `if` logic to be contained within
each presenter instead.
Also add :override to ensure super method exists.
|
|
|
|
|
|
To reduce the number of abstract methods, use polymorphic_paths for
collection routes. Unfortunately for member routes, polymorphic_paths
does not support namespaced classes, so still continue to override
methods.
|
|
Use ClustersController as base while having Projects::ClustersController
to inform what `clusterable` is. Thanks @ayufan for the great suggestion
!
- View changes to work with new approach
- Fix javascript for new approach
- Fix feature specs for new approach
- Fix QA
|
|
- Move show path for cluster to ClusterPresenter
- Create ClusterablePresenter to encapsulate logic. Consolidates
scattered methods from BaseController and ClustersHelper into an object.
|