Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/shrinerb/shrine-reform

[OUTDATED] Reform integration for Shrine
https://github.com/shrinerb/shrine-reform

form-objects reform shrine trailblazer

Last synced: 2 days ago
JSON representation

[OUTDATED] Reform integration for Shrine

Awesome Lists containing this project

README

        

# Shrine::Plugins::Reform

Provides [Reform] integration for [Shrine].

## Installation

```ruby
gem "shrine-reform"
```

## Usage

The reform plugin can be loaded globally alongside activerecord plugin.

```rb
Shrine.plugin :activerecord
Shrine.plugin :reform
```
```rb
class Post < ActiveRecord::Base
include ImageUploader::Attachment.new(:image)
end
```
```rb
class PostForm < Reform::Form
include ImageUploader::Attachment.new(:image)
end
```

## Contributing

You can run tests with the Rake task:

```
$ bundle exec rake test
```

## License

[MIT](LICENSE.txt)

[Reform]: https://github.com/apotonick/reform
[Shrine]: https://github.com/shrinerb/shrine