Skip to content

Latest commit

 

History

History
43 lines (31 loc) · 664 Bytes

README.md

File metadata and controls

43 lines (31 loc) · 664 Bytes

Shrine::Plugins::Reform

Provides Reform integration for Shrine.

Installation

gem "shrine-reform"

Usage

The reform plugin can be loaded globally alongside activerecord plugin.

Shrine.plugin :activerecord
Shrine.plugin :reform
class Post < ActiveRecord::Base
  include ImageUploader::Attachment.new(:image)
end
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