ruby on rails - Authenticate rails_admin with admin attribute -


i want able let users have admin attribute set true access rails_admin. so, if user has is_admin attribute true, can access rails_admin interface.

i have checked documentation , can find authentication here: https://github.com/sferik/rails_admin/wiki/authentication

please, me so?

thanks

from https://github.com/sferik/rails_admin/wiki/authorization

config.authorize_with   redirect_to main_app.root_path unless current_user.is_admin? end 

Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -