Redis adapter for the activity permission engine gem. ( https://github.com/synbioz/activity_permission_engine ).
Add this line to your application's Gemfile:
gem 'activity_permission_engine_redis'
And then execute:
$ bundle
Or install it yourself as:
$ gem install activity_permission_engine_redis
You need redis Gem and a running Redis database. ( See Redis gem documentation )
require 'redis'
ActivityPermissionEngine.configure do |config|
config.activity_permissions_registry = ActivityPermissionEngineRedis::ActivityPermissionsRegistry.new(Redis.new)
end
Do not forget to set up redis for persistence.
- Fork it ( https://github.com/synbioz/activity_permission_engine_redis/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request