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

Version Path
lockdown-0.5.17 rails_generators/lockdown/templates/app/helpers/permissions_helper.rb
lockdown-0.5.18 rails_generators/lockdown/templates/app/helpers/permissions_helper.rb
lockdown-0.5.13 rails_generators/lockdown/templates/app/helpers/permissions_helper.rb
lockdown-0.5.14 rails_generators/lockdown/templates/app/helpers/permissions_helper.rb
lockdown-0.5.16 rails_generators/lockdown/templates/app/helpers/permissions_helper.rb
lockdown-0.5.19 rails_generators/lockdown/templates/app/helpers/permissions_helper.rb
lockdown-0.5.22 rails_generators/lockdown/templates/app/helpers/permissions_helper.rb
lockdown-0.5.20 rails_generators/lockdown/templates/app/helpers/permissions_helper.rb
lockdown-0.5.21 rails_generators/lockdown/templates/app/helpers/permissions_helper.rb
lockdown-0.6.0 rails_generators/lockdown/templates/app/helpers/permissions_helper.rb
lockdown-0.6.1 rails_generators/lockdown/templates/app/helpers/permissions_helper.rb
lockdown-0.6.2 rails_generators/lockdown/templates/app/helpers/permissions_helper.rb
lockdown-0.6.3 rails_generators/lockdown/templates/app/helpers/permissions_helper.rb