An open API service indexing awesome lists of open source software.

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_*.

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).