supernullset / pundit_permissions_dsl

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pundit_permissions_dsl

Description

Pundit Permissions DSL allows you to create policies on a model by model basis which allow roles to be defines at the route level.

Features

Examples

“‘ruby UserPolicy = Struct.new(:user, :model) do

extend AuthorizationDSL

authorize do
  actions :default
  role :admin, :any
  role :publisher, :index, :show
end

end “‘

Requirements

This gem requires pundit (TODO: Version number)

Install

$ gem install pundit_permissions_dsl

Copyright © 2013 user

See LICENSE.txt for details.

About

License:MIT License


Languages

Language:Ruby 94.0%Language:JavaScript 3.1%Language:CSS 2.9%