RubyFlow The Ruby and Rails community linklog

Update: Rabarber Gem - Simplified Authorization for Rails

Some time has passed since we first introduced Rabarber, our role-based authorization library for Ruby on Rails. If you're on the lookout for another option for managing user access in your Rails applications, Rabarber might be worth checking out.

Since our initial introduction, Rabarber has undergone several updates, bringing new features and enhancements to the table:

New Features and Enhancements:
  • Version 1.3.0:
    • Added methods for directly managing roles, making it even easier to control user access.
    • Enhanced performance for smoother authorization checks.
  • Version 1.2.1:
    • Introduced role caching to optimize database queries.
    • Added configuration options for customizing role caching behavior.
    • Improved migration generator for easier setup.
  • Version 1.2.0:
    • Improved handling of missing actions and roles with customizable error behaviors.
  • Version 1.1.0:
    • Added support for negated dynamic rules, enhancing flexibility in defining access logic.
In case you're new to Rabarber or need a refresher, here's what it's all about:

Rabarber is a role-based authorization library designed specifically for Ruby on Rails applications. It focuses on providing a lightweight and flexible solution for managing user roles and defining authorization rules, with a primary emphasis on answering the question of 'Who can access which endpoint?'.

Example Usage:

class TicketsController < ApplicationController
  grant_access roles: :admin
  ...
end

For a more comprehensive guide on installation, configuration, and usage, check out the Rabarber README.

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in