effective_assets 1.7.3 → 1.7.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 198dd733b8b06a3e89d9790d5f389f23cef6ad73
4
- data.tar.gz: 398afc80bf142c0c7a8522a5f797d8d5fed39300
3
+ metadata.gz: 5639f73b765f37f281bbd028f4d1620603ffd84c
4
+ data.tar.gz: f7ed1303dec316b57851da1f4230088a3426afa6
5
5
  SHA512:
6
- metadata.gz: ba9d1577a9e45250d043216a75f252109182f078af092f84dc3e72513b30fd816b198bbd9f712ac3fbc57e2322806d4f03cbb36f4f35ba18c0afcf248b3572f4
7
- data.tar.gz: a787fe2099cca981877e36510d9fd4c4e60ec3eda75bf5732a033072b2eabeb3d98872ec96000eae236923f2cef163ea7dac7317b0889fead209e69d6cae67d0
6
+ metadata.gz: 47d3c75bd28f160b72b08e34204b4e10d7c9869e1ab4dc69ff522b466b66627450f4b615a56f1cdfe8356b5202e2ca865705789d123025f9f7e004f8f97630bb
7
+ data.tar.gz: 657bb3e4d22aac64303b1d7c3461498b3545d6e28ecb0e484a73af8f4a1bc43a7ea1144c0ba3f24dd36809672c7c56618e50ee08880a44a81577afca33ae02d4
@@ -2,7 +2,7 @@ module Effective
2
2
  class Asset < ActiveRecord::Base
3
3
  self.table_name = EffectiveAssets.assets_table_name.to_s
4
4
 
5
- mount_uploader :data, EffectiveAssets.uploader
5
+ mount_uploader :data, (EffectiveAssets.uploader.kind_of?(String) ? : EffectiveAssets.uploader.constantize : EffectiveAssets.uploader)
6
6
 
7
7
  belongs_to :user if defined?(User)
8
8
  # This is the user that uploaded the asset.
@@ -1,3 +1,3 @@
1
1
  module EffectiveAssets
2
- VERSION = '1.7.3'.freeze
2
+ VERSION = '1.7.4'.freeze
3
3
  end
@@ -4,7 +4,7 @@ EffectiveAssets.setup do |config|
4
4
  config.assets_table_name = :assets
5
5
  config.attachments_table_name = :attachments
6
6
 
7
- config.uploader = AssetUploader # Must extend from EffectiveAssetsUploader
7
+ config.uploader = 'AssetUploader' # Must extend from EffectiveAssetsUploader
8
8
 
9
9
  # Authorization Method
10
10
  #
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_assets
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.3
4
+ version: 1.7.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-08 00:00:00.000000000 Z
11
+ date: 2016-09-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails