glebtv-carrierwave-mongoid 0.6.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/lib/carrierwave/mongoid.rb +2 -1
- data/lib/carrierwave/mongoid/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 107af04022af867c958e4a5fd97f29eb6baedc5c
|
4
|
+
data.tar.gz: 2c5bb6025324a49ff388155320551d4061a308ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 88284fdbd0ac466779c1a583df0fa7be58e3e401f22290166268c612b0357d18346e972a8bf5c623022786c81bb67e23dc383555a69eddf624bcace1f8a3a65d
|
7
|
+
data.tar.gz: 9ba9b00ac450db8677d71d76feb097c80e095906a5cd6093c696d2cc5f409d87795ebfbaf45574a0d4e909d26dae228e1075bf2a27af027c91429a3594bceb05
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
glebtv-carrierwave-mongoid (0.6.
|
4
|
+
glebtv-carrierwave-mongoid (0.6.2)
|
5
5
|
carrierwave (~> 0.9.0)
|
6
6
|
mongoid (>= 3.0, < 5.0)
|
7
7
|
|
@@ -39,11 +39,11 @@ GEM
|
|
39
39
|
method_source (~> 0.8)
|
40
40
|
slop (~> 3.4)
|
41
41
|
rake (10.1.0)
|
42
|
-
rspec (2.14.
|
42
|
+
rspec (2.14.1)
|
43
43
|
rspec-core (~> 2.14.0)
|
44
44
|
rspec-expectations (~> 2.14.0)
|
45
45
|
rspec-mocks (~> 2.14.0)
|
46
|
-
rspec-core (2.14.
|
46
|
+
rspec-core (2.14.3)
|
47
47
|
rspec-expectations (2.14.0)
|
48
48
|
diff-lcs (>= 1.1.3, < 2.0)
|
49
49
|
rspec-mocks (2.14.1)
|
data/lib/carrierwave/mongoid.rb
CHANGED
@@ -11,7 +11,8 @@ module CarrierWave
|
|
11
11
|
# See +CarrierWave::Mount#mount_uploader+ for documentation
|
12
12
|
#
|
13
13
|
def mount_uploader(column, uploader=nil, options={}, &block)
|
14
|
-
|
14
|
+
field_name = options[:mount_on] || column
|
15
|
+
field field_name unless fields.keys.include?(field_name.to_s)
|
15
16
|
|
16
17
|
super
|
17
18
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: glebtv-carrierwave-mongoid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GlebTv
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-07-
|
13
|
+
date: 2013-07-20 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: carrierwave
|