Skip to content

Issue with controller_path for cache keys #13

@mmhan

Description

@mmhan

controller_path seems to be used for both cache keys and view paths

The method is as seen below.

https://github.com/trailblazer/trailblazer-cells/blob/master/lib/trailblazer/cell.rb#L34:L37

Currently it is producing duplicate cache keys for different cells as below

# Comment::Cell::Show #=> comment/view/
# Comment::Cell::Summary #=> comment/views/

My expectation is that cache keys should be

# Comment::Cell::Show #=> comment/view/show/
# Comment::Cell::Summary #=> comment/views/summary/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions