Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexander-senko/organizer
Rails Engine providing some tools to organize your application records, e.g. lists, tags, flags, etc.
https://github.com/alexander-senko/organizer
Last synced: 20 days ago
JSON representation
Rails Engine providing some tools to organize your application records, e.g. lists, tags, flags, etc.
- Host: GitHub
- URL: https://github.com/alexander-senko/organizer
- Owner: Alexander-Senko
- License: mit
- Created: 2023-12-29T16:40:32.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-11T02:33:50.000Z (about 1 year ago)
- Last Synced: 2024-12-24T07:45:04.687Z (about 2 months ago)
- Language: Ruby
- Homepage:
- Size: 37.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: MIT-LICENSE
Awesome Lists containing this project
README
# Organizer
A Rails Engine providing some tools to organize your application records, e.g. _lists_, _tags_, _flags_, etc.
## Usage
### `Identifiable`
Presuming `MyModel` has a unique `name` attribute:
```ruby
class MyModel < ApplicationRecord
include Organizer::Identifiable.by :name
endMyModel.names # => [:my_name, :other_name, …]
MyModel[:my_name] # => #
```## Installation
Add this line to your application's Gemfile:```ruby
gem "organizer-rails", require: "organizer"
```And then execute:
```bash
$ bundle
```Or install it yourself as:
```bash
$ gem install organizer-rails
```## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request## License
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).