Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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.

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
end

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