AuthClient
Installation
Add this line to your application's Gemfile:
gem 'auth_client'
And then execute:
$ bundle
Run generator:
bundle exec rails generate auth_client:install
Or use similar models
class User
include AuthClient::User
# your code goes here
end
class Permission < ActiveRecord::Base
include AuthClient::Permission
roles: [:admin]
# your code goes here
end