diff --git a/README.md b/README.md index 65b45d4..afb684b 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,12 @@ $ rake activeadmin_wysihtml5:install:migrations $ rake db:migrate ``` +Generate dragonfly configuration: + +```bash +$ rails generate dragonfly +```` + ## Usage This gem provides you with a custom formtastic input called `:wysihtml5` to build out an html editor. All you have to do is specify the `:as` option for your inputs. @@ -69,3 +75,7 @@ end * `:huge`: 450px; * an integer representing the height of the editor; +## Use s3 storage + +[instructions found here](https://github.com/markevans/dragonfly-s3_data_store/blob/master/README.md) + diff --git a/activeadmin-wysihtml5.gemspec b/activeadmin-wysihtml5.gemspec index 3cefc94..548b9cc 100644 --- a/activeadmin-wysihtml5.gemspec +++ b/activeadmin-wysihtml5.gemspec @@ -14,6 +14,6 @@ Gem::Specification.new do |s| s.files = Dir["{app,config,db,lib,vendor}/**/*"] + ["MIT-LICENSE", "README.md"] s.add_dependency "activeadmin" - s.add_dependency "activeadmin-dragonfly" + s.add_dependency "activeadmin-dragonfly", "~> 0.1" end diff --git a/app/models/asset.rb b/app/models/asset.rb index 5b19bbe..3b0b2c6 100644 --- a/app/models/asset.rb +++ b/app/models/asset.rb @@ -1,5 +1,6 @@ class Asset < ActiveRecord::Base - image_accessor :storage + extend Dragonfly::Model + dragonfly_accessor :storage def percentage_thumb_url(size) width = (storage.width * size).ceil diff --git a/lib/active_admin/wysihtml5/version.rb b/lib/active_admin/wysihtml5/version.rb index 4a78591..85b7832 100644 --- a/lib/active_admin/wysihtml5/version.rb +++ b/lib/active_admin/wysihtml5/version.rb @@ -1,6 +1,6 @@ module ActiveAdmin module Wysihtml5 - VERSION = "1.0.0" + VERSION = "1.1.0" end end