Sha256: 594f18e266eff50f7a26d1483974324026a3a5c6832970295bcd7bde31f09f61
Contents?: true
Size: 460 Bytes
Versions: 13
Compression:
Stored size: 460 Bytes
Contents
module <%= "#{namespace.camelcase}::" unless namespace.blank? %>PermissionsHelper def permission_name_value h @permission.name end def permission_access_rights_value Lockdown::System.access_rights_for_permission(@permission).collect{|r| r}.join("<br/>") end def permission_users_value @permission.all_users.collect{|u| link_to_or_show(u.full_name, <%= namespace.blank? ? 'u' : "#{namespace}_user_path(u)" %>)}.join("<br/>") end end
Version data entries
13 entries across 13 versions & 1 rubygems