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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bbd60f05a7533ed96fddf1fc24e0159a79955335
4
- data.tar.gz: a9041cb0e401390898142b87d002c65a421b0f2d
3
+ metadata.gz: 107af04022af867c958e4a5fd97f29eb6baedc5c
4
+ data.tar.gz: 2c5bb6025324a49ff388155320551d4061a308ed
5
5
  SHA512:
6
- metadata.gz: 31c9fc58cdd7907e262a4058f34b303b0940f4ce55696842776ced70a2ab6406e1d0fd3b5245204e505d79b36a18332971a7a6ac4543cdac3a6e305a49a3f681
7
- data.tar.gz: 4070fe3b4352f0ee5347ccd3cc617ab25ea1844bf39107499ce2181cb2682440e0f1970356a211a0f9efb9b1b1cb1ad9192a7118bf5cc5e7d7e096b15898dd28
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.1)
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.0)
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.0)
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)
@@ -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
- field options[:mount_on] || column
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
 
@@ -1,5 +1,5 @@
1
1
  module Carrierwave
2
2
  module Mongoid
3
- VERSION = "0.6.1"
3
+ VERSION = "0.6.2"
4
4
  end
5
5
  end
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.1
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-08 00:00:00.000000000 Z
13
+ date: 2013-07-20 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: carrierwave