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

Limiting the methods of the Resource class #23

Open
jorr opened this issue Nov 26, 2013 · 1 comment
Open

Limiting the methods of the Resource class #23

jorr opened this issue Nov 26, 2013 · 1 comment

Comments

@jorr
Copy link

jorr commented Nov 26, 2013

Are there any plans to add support for limiting the access points to a REST resource using something akin to Rails' only/except:

resources :posts do
resources :comments, only: [:index, :new, :create]
end

resources :photos, except: :destroy

An example would be:

router.resource("posts").only(["index","new","create"]);
router.resource("photos").except(["destroy"]);

@techwraith
Copy link

+1, this would be great. We could build this into Geddy's generators as well.

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

No branches or pull requests

2 participants