I added an admin role to Devise by adding a admin attribute.
Could you tell me if this is the right way to create a before_filter that requires an admin user to be signed:
in any controller:
before_filter :authenticate_admin!
in application_controller
protected
unless current_user.try(:admin?)
redirect_to :new_user_session_path
end