class Permission
Public Class Methods
get_permissions()
click to toggle source
You will need to add the permission based on following format -
[ ['__URL__','__ROLE__'] ] Example - [ ['/login', 'normal'], ['/users/new', 'admin'] ] TODO:- * Allowing multiple user to be added for single url * Use of paths or url instead of exact URL
# File lib/generators/secure_link/templates/permission.rb, line 17 def self.get_permissions [ ['',''] ] end