Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: decent exposure style exposing options #42

Open
mensfeld opened this issue Jan 6, 2017 · 2 comments
Open

Feature request: decent exposure style exposing options #42

mensfeld opened this issue Jan 6, 2017 · 2 comments

Comments

@mensfeld
Copy link

mensfeld commented Jan 6, 2017

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
@n-rodriguez
Copy link
Contributor

n-rodriguez commented Jun 18, 2018

The future/new way of doing so : #86

@n-rodriguez
Copy link
Contributor

Hi! I think this one can be closed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants