Project

omniperm

0.0
No release in over 3 years
Low commit activity in last 3 years
With Omniperm you can centralize your authorization strategies in a YAML file against a configurable context
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

 Project Readme

Circle CI

OmniPerm

About

With Omniperm you can centralize your authorization strategies in a YAML file against a configurable context

Install

Install for Ruby on Rails applications

rails g omniperm:install

How to use

Manually authorize a method

def my_method
  service_authorized?
end

Authorize all methods of a class and its children

class MyService < Omniperm::AuthorizationRequired

  def do_something
  end

  def do_another_thing
  end
end

class MySubService < MyService

  def do_something
  end

  def do_another_thing
  end
end