0.01
No commit activity in last 3 years
No release in over 3 years
Provides Reform integration for Shrine.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

>= 0
~> 2.0
 Project Readme

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