Ruby
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib/shrine/plugins
test
.gitignore
CODE_OF_CONDUCT.md
Gemfile
LICENSE.txt
README.md
Rakefile
shrine-reform.gemspec

README.md

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