delayed-web | rails engine that provides a simple web interface | Application Framework library
kandi X-RAY | delayed-web Summary
kandi X-RAY | delayed-web Summary
A rails engine that provides a simple web interface for exposing the Delayed::Job queue.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of delayed-web
delayed-web Key Features
delayed-web Examples and Code Snippets
Community Discussions
Trending Discussions on delayed-web
QUESTION
currently I am using the gem delayed-web
in my project. I have multiple user roles, and I don't wanna the users whose roles are sales can access to the page delayed web background interface. I already have a method to check for the authentication in my application controller. However, I don't know how to make it work in the route files. Any suggestion would be appreciated.
Updated: I am not using Devise gem. I roll my own authentication.
application_controller.rb:
...ANSWER
Answered 2017-Jan-23 at 03:56Ok, I've solved the problem. It turns out that I can find the current user based on his authentication token which is saved inside of the Request object(again, I don't use any gems for authentication, I roll my own one, but I don't think that is the problem here anyway). This is the complete solution, in case somebody way run into the same difficulty:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install delayed-web
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page