The project is in a healthy, maintained state
This CanCanCan extension displays the location where selected rule for authorization was defined and also prints the locations where load_and_authorize_resource and authorize! hooks are defined.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Runtime

 Project Readme

Verbose CanCanCan

Description

This is a verbose extension for CanCanCan that prints the location of matching rule definitions and authorization hooks on terminal. It helps developers debug and understand where authorization rules are being applied within their application.

Note: This gem is an extension and requires CanCanCan to be installed in your Rails App.

Features

  • Displays the location where the selected rule for authorization was defined.
  • Prints the locations where load_and_authorize_resource and authorize! hooks are defined.

Screenshot

screenshot

Installation

Add this line to your application's Gemfile:

group :development do
  gem "verbose_cancancan"
end

And then execute

bundle install

Usage

Once installed, the extension will automatically enhance CanCanCan’s logging to display rule and hook locations when performing authorization checks.

CanCanCan Compatible Versions

  • From 3.0.0 to 3.5.0

Contributing

Bug reports and pull requests are welcome.

License

This project is available as open-source under the terms of the MIT License.

Note

Please use this gem in development only.