-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Adam Pahlevi Baihaqi edited this page Mar 1, 2016
·
19 revisions
Please enjoy using the world's easiest way to do role-based authorisation, in any of your Ruby files, apps, web apps, mobile apps, test specs, and so and so on!
Expect this wiki to contain resources to get you started.
Cheers, Bali maintainers
Throughout this wiki, you will see a lot of My::Transaction
which is a class with the following definition:
class My::Transaction
attr_accessor :is_settled
attr_accessor :payment_channel
alias :is_settled? :is_settled
end
And My::SecuredTransaction
, a subclass of My::Transaction
with the following definition:
class My::SecuredTransaction < My::Transaction
end
And My::Employee
with the following definition:
class My::Employee
# working experience in the company
attr_accessor :exp_years
# role/roles of this employee
attr_accessor :roles
end
- How to define rules?
- How to do access authorisation?
- How if the user has more than one role?
- How to pretty-print all defined rules
- How to integrate with Rails
- Adam Pahlevi Baihaqi