• Luke Duncalfe's avatar
    Create Todos for designs · e1e0f1cf
    Luke Duncalfe authored
    Allowing Projects::TodosController to create Todos for Designs.
    
    This involved a small change to FinderMethods to refer to an objects
    `#to_ability_name` method if defined, as due to its namespacing,
    the existing deriving of from `DesignManagement::Design.model_name`
    would not work. FinderMethods fallsback to its old deriving method for
    when an object does not define `#to_ability_name`.
    
    https://gitlab.com/gitlab-org/gitlab/-/issues/198439
    e1e0f1cf
todos_controller_spec.rb 2.27 KB