https://github.com/afeiship/rails_toggleable
A Rails plugin for configurable boolean toggle fields with dynamic methods like enable_*, disable_*, toggle_*.
https://github.com/afeiship/rails_toggleable
boolean disable enable plugin rails toggle
Last synced: 2 months ago
JSON representation
A Rails plugin for configurable boolean toggle fields with dynamic methods like enable_*, disable_*, toggle_*.
- Host: GitHub
- URL: https://github.com/afeiship/rails_toggleable
- Owner: afeiship
- License: mit
- Created: 2019-04-26T10:44:51.000Z (about 7 years ago)
- Default Branch: main
- Last Pushed: 2025-11-07T14:38:31.000Z (7 months ago)
- Last Synced: 2025-12-13T11:45:10.998Z (6 months ago)
- Topics: boolean, disable, enable, plugin, rails, toggle
- Language: HTML
- Homepage:
- Size: 77.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: MIT-LICENSE
Awesome Lists containing this project
README
# rails_toggleable
> A Rails plugin for configurable boolean toggle fields with dynamic methods like enable_*, disable_*, toggle_*.
## Usage
```sh
rails generate toggleable_field active --model User
rails generate toggleable_field published --model Post
```
## Installation
Add this line to your application's Gemfile:
```ruby
gem "rails_toggleable"
```
And then execute:
```bash
$ bundle
```
Or install it yourself as:
```bash
$ gem install rails_toggleable
```
## Contributing
Contribution directions go here.
## License
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).