Sha256: a72bf46e21c41ebdca9cad6d6ae1470c867197008601c1eb80ff9796cbf1733f

Contents?: true

Size: 333 Bytes

Versions: 9

Compression:

Stored size: 333 Bytes

Contents

module PermissionsHelper
  def permission_name_value
		h @permission.name 
  end

  def permission_access_rights_value
		@permission.access_rights.collect{|r| r}.join("<br/>") if @permission.access_rights
  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

9 entries across 9 versions & 1 rubygems

Version Path
lockdown-0.2.0 rails_generators/lockdown_all/templates/app/helpers/permissions_helper.rb
lockdown-0.1.3 rails_generators/lockdown_all/templates/app/helpers/permissions_helper.rb
lockdown-0.1.4 rails_generators/lockdown_all/templates/app/helpers/permissions_helper.rb
lockdown-0.3.1 rails_generators/lockdown_all/templates/app/helpers/permissions_helper.rb
lockdown-0.3.6 rails_generators/lockdown_all/templates/app/helpers/permissions_helper.rb
lockdown-0.3.2 rails_generators/lockdown_all/templates/app/helpers/permissions_helper.rb
lockdown-0.3.4 rails_generators/lockdown_all/templates/app/helpers/permissions_helper.rb
lockdown-0.3.3 rails_generators/lockdown_all/templates/app/helpers/permissions_helper.rb
lockdown-0.3.5 rails_generators/lockdown_all/templates/app/helpers/permissions_helper.rb