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:
Does my usage reasonable? If yes I think we can do a deep_merge to avoid options overwritten.
I'm in a Rails project, using
concepthelper to do render:While I found the
contexthash will always be overwritten as{controller: ...}, but my expected result is a hash withfookey.Some tracing:
controllerinto context.https://github.com/trailblazer/cells-rails/blob/v0.0.7/lib/cell/rails.rb#L10-L11
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_mergeto avoid options overwritten.