Imagine a testcase where a specific controller has access privileges for
its actions.
Let's say there's a controller "Test" and it has actions like "show",
"new", "create" and i created an access privilege using petergate for
different roles.
*access user: [show], admin: [new create]*
The
In application.rb file declare a before_action function that sets the
current_user into a cookie/session (cookie prefered). Then you can access
the cookies using "document.cookies" in javascript.
On Wednesday, January 8, 2020 at 10:13:44 PM UTC-5, fugee ohu wrote:
>
> ?
>
--
You received this
2 matches
Mail list logo