Skip to content

shrinerb/shrine-reform

Repository files navigation

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