Pundit Permissions DSL allows you to create policies on a model by model basis which allow roles to be defines at the route level.
“‘ruby UserPolicy = Struct.new(:user, :model) do
extend AuthorizationDSL authorize do actions :default role :admin, :any role :publisher, :index, :show end
end “‘
This gem requires pundit (TODO: Version number)
$ gem install pundit_permissions_dsl
Copyright © 2013 user
See LICENSE.txt for details.