Sha256: 189568ff4cc87540fbc07472f4614c4b9e90ac814237c4e234c513ddac2cc76d

Contents?: true

Size: 340 Bytes

Versions: 12

Compression:

Stored size: 340 Bytes

Contents

module 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, u)}.join("<br/>")
  end
end

Version data entries

12 entries across 11 versions & 1 rubygems

Version Path
lockdown-0.4.4 rails_generators/lockdown_all/templates/app/helpers/permissions_helper.rb
lockdown-0.4.3 rails_generators/lockdown_all/templates/app/helpers/permissions_helper.rb
lockdown-0.4.0 rails_generators/lockdown_all/templates/app/helpers/permissions_helper.rb
lockdown-0.4.1 rails_generators/lockdown_all/templates/app/helpers/permissions_helper.rb
lockdown-0.4.2 rails_generators/lockdown_all/templates/app/helpers/permissions_helper.rb
lockdown-0.4.5 rails_generators/lockdown_all/templates/app/helpers/permissions_helper.rb
lockdown-0.5.0 rails_generators/lockdown/templates/app/helpers/permissions_helper.rb
lockdown-0.4.6 rails_generators/lockdown_all/templates/app/helpers/permissions_helper.rb
lockdown-0.5.0 rails_generators/lockdown_all/templates/app/helpers/permissions_helper.rb
lockdown-0.5.1 rails_generators/lockdown/templates/app/helpers/permissions_helper.rb
lockdown-0.5.2 rails_generators/lockdown/templates/app/helpers/permissions_helper.rb
lockdown-0.5.3 rails_generators/lockdown/templates/app/helpers/permissions_helper.rb