Sha256: 02a97e725491401daec9613471ca82306b1c398b0fcf7e4ad7d7049ebac9e52b
Contents?: true
Size: 963 Bytes
Versions: 1
Compression:
Stored size: 963 Bytes
Contents
# Sinatra::Pundit A lightweight wrapper for the [Pundit](https://github.com/elabs/pundit) authorization gem. Provides authorization Pundit's helpers to use in Sinatra applications. ## Installation Add this line to your application's Gemfile: ```ruby gem 'sinatra-pundit' ``` And then execute: $ bundle Or install it yourself as: $ gem install sinatra-pundit ## Usage Require the extension in your application: ```ruby require 'sinatra/pundit' ``` If your application is “classic”, you’re done. The `authorize` method should be available to your application. If your application subclasses Sinatra::Base, you have to register the extension in your subclass: ```ruby register Sinatra::Pundit ``` ## Contributing Bug reports and pull requests are welcome on GitHub at https://github.com/smartinm/sinatra-pundit. ## License The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sinatra-pundit-0.1.0 | README.md |