Sha256: f03c4ad77427acb54be0e6a98f92f11737b79ee7ffd194a58ef3ec507b63f322

Contents?: true

Size: 1.27 KB

Versions: 1

Compression:

Stored size: 1.27 KB

Contents

# CanCanCan-Squeel [![Build Status](https://travis-ci.org/lowjoel/cancancan-squeel.svg?branch=master)](https://travis-ci.org/lowjoel/cancancan-squeel)
[![Code Climate](https://codeclimate.com/github/lowjoel/cancancan-squeel/badges/gpa.svg)] (https://codeclimate.com/github/lowjoel/cancancan-squeel) [![Coverage Status](https://coveralls.io/repos/github/lowjoel/cancancan-squeel/badge.svg?branch=master)](https://coveralls.io/github/lowjoel/cancancan-squeel?branch=master) [![security](https://hakiri.io/github/lowjoel/cancancan-squeel/master.svg)](https://hakiri.io/github/lowjoel/cancancan-squeel/master) [![Inline docs](http://inch-ci.org/github/lowjoel/cancancan-squeel.svg?branch=master)](http://inch-ci.org/github/lowjoel/cancancan-squeel)

This is an adapter for the [CanCanCan](https://github.com/CanCanCommunity/cancancan) authorisation
library to automatically generate SQL queries from ability rules.

This differs from the default ActiveRecord implementation in that it uses
[squeel](https://github.com/activerecord-hackery/squeel) to generate SQL queries. This no longer
uses
 - `includes` (which incurs eager loading overhead)
 - `WHERE` fragments, joined lexically using `OR` or `AND` or `NOT`.

As a side effect of using `squeel`, this allows self-joins in rule definitions.

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cancancan-squeel-0.1.0 README.md