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

Generator template has old config.controller_guard #62

Open
ukolovda opened this issue Oct 17, 2014 · 2 comments
Open

Generator template has old config.controller_guard #62

ukolovda opened this issue Oct 17, 2014 · 2 comments

Comments

@ukolovda
Copy link

ukolovda commented Oct 17, 2014

In new version config.controller_guard's lambda can use up to 4 arguments, but template contains only 2.
I need the controller, and spent 3 hours to found it.

@ckk-scratch
Copy link

@ukolovda - what was the argument list you ended up using?

@ukolovda
Copy link
Author

ukolovda commented Feb 21, 2017

@ckk-scratch , this:
config.controller_guard = lambda { |current_user, request, original_user, controller|
controller.admin_user_signed_in?
}

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