Skip to content
This repository has been archived by the owner on Apr 26, 2022. It is now read-only.

Commit

Permalink
Splits out the dragonfly-activerecord store
Browse files Browse the repository at this point in the history
  • Loading branch information
mezis committed Jan 2, 2014
1 parent 6698b97 commit 71888a6
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 111 deletions.
1 change: 1 addition & 0 deletions Gemfile
Expand Up @@ -47,6 +47,7 @@ gem 'rails-observers'

# attached files & image manipulation
gem 'dragonfly'
gem 'dragonfly-activerecord'
gem 'fineuploader-rails'

# caching, at the Rack level
Expand Down
3 changes: 3 additions & 0 deletions Gemfile.lock
Expand Up @@ -119,6 +119,8 @@ GEM
dragonfly (1.0.2)
multi_json (~> 1.0)
rack
dragonfly-activerecord (0.0.1)
activerecord (>= 3.2.6)
em-http-request (1.0.3)
addressable (>= 2.2.3)
cookiejar
Expand Down Expand Up @@ -454,6 +456,7 @@ DEPENDENCIES
devise
dotenv-rails
dragonfly
dragonfly-activerecord
faker
fineuploader-rails
font-awesome-rails
Expand Down
18 changes: 0 additions & 18 deletions app/models/storage/chunk.rb

This file was deleted.

26 changes: 0 additions & 26 deletions app/models/storage/data_store.rb

This file was deleted.

28 changes: 0 additions & 28 deletions app/models/storage/file.rb

This file was deleted.

3 changes: 2 additions & 1 deletion config/initializers/dragonfly.rb
@@ -1,4 +1,5 @@
require 'dragonfly'
require 'dragonfly-activerecord/store'

# Configure
Dragonfly.app.configure do
Expand All @@ -10,7 +11,7 @@

url_format '/media/:job/:name'

datastore Storage::DataStore.new
datastore Dragonfly::ActiveRecord::Store.new
end

# Logger
Expand Down
38 changes: 0 additions & 38 deletions spec/models/storage_spec.rb

This file was deleted.

0 comments on commit 71888a6

Please sign in to comment.