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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5639f73b765f37f281bbd028f4d1620603ffd84c
|
4
|
+
data.tar.gz: f7ed1303dec316b57851da1f4230088a3426afa6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
@@ -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.
|
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-
|
11
|
+
date: 2016-09-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|