Skip to content

Jrakesh/rails4-devise-pundit-bootstrap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rails4-devise-pundit-bootstrap

This is a Rails v4.0.2 starter app and can be used as a boilerplate for your own app.

Out-of-the-box features:

  1. Devise + Pundit for authorization and role based authentication.
  2. Bootstrap-3 integration.
  3. Dynamic role creation.

Installation

In the command line run:
bundle
rake db:setup

This will install the gems specified in Gemfile and create the tables in the database (please change the config/database.yml to set your configuration)

This gem performs role-based authorization through OO design and pure Ruby classes for a simple, robust and scaleable authorization system.

Currently only admin users are given all the access. You can add up more access definitions in policy class at app/policies

One default admin user is created. See config/application.yml for more settings.

Dynamic Role Creation

You can add as many roles you want and define its access scopes in Policy classes. Currently only admin users are given the access of role creation.

TODO

  • Add the test coverage.

Use this code as you want! HAPPY CODING !!

About

Boilerplate app in Rails v4.0.2 for role-based authentication using Pundit gem.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published