-
Notifications
You must be signed in to change notification settings - Fork 40
Open
Description
I'm in a Rails project, using concept helper to do render:
concept('some/cell/index', collection: Song.all, context: {foo: :bar})While I found the context hash will always be overwritten as {controller: ...}, but my expected result is a hash with foo key.
Some tracing:
- cells-rails adds
controllerinto context.
https://github.com/trailblazer/cells-rails/blob/v0.0.7/lib/cell/rails.rb#L10-L11 - cells, will try merge options back to
modelwheremodelhere is actually an hash including options.
https://github.com/trailblazer/cells/blob/4-0/lib/cell/view_model.rb#L62
Does my usage reasonable? If yes I think we can do a deep_merge to avoid options overwritten.
Metadata
Metadata
Assignees
Labels
No labels