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 PostInstallation
Add this line to your application's Gemfile:
gem "rails_toggleable"And then execute:
$ bundleOr install it yourself as:
$ gem install rails_toggleableContributing
Contribution directions go here.
License
The gem is available as open source under the terms of the MIT License.