Skip to content

Feature request: decent exposure style exposing options #42

@mensfeld

Description

@mensfeld

Hey, not exactly sure about the implementation, but few times I had a problem that when working with nested resources I would have to fetch parent resource and the main resource and then do something in the views with both (lets say breadcrumbs + headers, etc). For now I have to fetch the result and manually assign stuff (something like that):

result = Op.call(args, params)
@root_resource = result['root_resource']
@model = result['model']

I could imagine that people that don't use cells or want to migrate but can't do all at once would love something like that (I know that for cells there's stuff but adapting systems is not that easy):

def create
  result = Op.call(args, params)
  respond_with result, expose: %w( root_resource model )
end

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