Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
S

six

> 后端框架
Open source

Ultra lite authorization library

321 stars0 likes3 views
WebsiteGitHub

About

Ultra lite authorization library

Six - is a simple authorization gem for Ruby!

based on clear ruby it can be used for Rails applications or any other framework

Installation

ruby
  gem install six

QuickStart

4 steps:

  1. create abilities object

    ruby
      abilities = Six.new
  2. create object/class with allowed method - here you'll put conditions to define abilities

    ruby
    class BookRules
      def self.allowed(author, book)
        [:read_book, :edit_book]
      end
    end
  3. Add object with your rules to abilities

    ruby
    abilities  BookRules) # same as Six.new & add(:book_rules, BookRules)

with more

abilities = Six.new(:book => BookRules, :auth => AuthRules, :managment => ManagerRules)


### Adding rules

```ruby

abilities = Six.new

# 1. simple (recommended)
# but you cant use  abilities.use(:book_rules) to 
# search over book namespace only
abilities  more perfomance

Namespaces

…

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Rubyauthorizationrailsruby

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category后端框架
PricingOpen source

> Related tools

N
Node.js
基于 V8 的 JavaScript 运行时
D
Django
Python 高级 Web 框架
S
Spring Boot
Java 生态主流微服务框架