0.0
The project is in a healthy, maintained state
Blazer Plus is a feature extension for the Blazer gem. It provides additional safety measures and enhancements to improve the user experience and security when using Blazer for database queries.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0
>= 0
 Project Readme

Blazer Plus

Blazer Plus is a feature extension for the blazer gem. It provides additional safety measures and enhancements to improve user experience and security when using Blazer for database queries.

  • Support for CSV output with BOM
  • Row limit for query result output
  • Access restriction for dangerous actions

Installation

Add this line to your application's Gemfile:

gem 'blazer-plus'

And then execute:

$ bundle install

Usage

You can configure Blazer Plus in your application's initialization file. Here's an example:

# Blazer::Plus.enabled = true
Blazer::Plus.blazer_danger_actionable_method = ->(blazer_user) { blazer_user.blazer_admin? }

In this example, Blazer::Plus.enabled is a flag to enable or disable the Blazer Plus features. Blazer::Plus.blazer_danger_actionable_method is a lambda function that you can customize to handle dangerous queries action by Blazer Plus.

License

This gem is available under the MIT license.