Sha256: ef38f405b7eabba2e894176dd2595e025132cb34016c9dfc9b836ed11e26f3bc

Contents?: true

Size: 1.17 KB

Versions: 1

Compression:

Stored size: 1.17 KB

Contents

EffectiveRoles.setup do |config|
  config.roles = [:superadmin, :admin, :member] # Only add to the end of this array.  Never prepend roles.

  # config.role_descriptions may be an Array or a Hash
  # These role descriptions are just text displayed by the effective_roles_fields() helper

  # Use a Hash if you want different labels depending on the resource being editted
  #

  # config.role_descriptions = {
  #   'User' => [
  #     "full access to everything. Can manage users and all website content.",
  #     "full access to website content.  Cannot manage users.",
  #     "cannot access admin area.  Can see all content in members-only sections of the website."
  #   ],
  #   'Effective::Page' => [
  #     "allow superadmins to see this page",
  #     "allow admins to see this page",
  #     "allow members to see this page"
  #   ]
  # }

  # Or just keep it simple, and use the same Array of labels for everything
  #
  config.role_descriptions = [
    "full access to everything. Can manage users and all website content.",
    "full access to website content.  Cannot manage users.",
    "cannot access admin area.  Can see all content in members-only sections of the website."
  ]
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
effective_roles-0.1 lib/generators/templates/effective_roles.rb