rails_toggleable

A Rails plugin for configurable boolean toggle fields with dynamic methods like enable_, disable_, toggle_*.

Usage

rails generate toggleable_field active --model User
rails generate toggleable_field published --model Post

Installation

Add this line to your application's Gemfile:

gem "rails_toggleable"

And then execute:

$ bundle

Or install it yourself as:

$ gem install rails_toggleable

Contributing

Contribution directions go here.

License

The gem is available as open source under the terms of the MIT License.