glebtv-carrierwave-mongoid 0.6.3 → 0.6.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/carrierwave/mongoid.rb +1 -1
- data/lib/carrierwave/mongoid/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 63aa8f7996ffb3670a34b599f0fc60e11f9b2519
|
4
|
+
data.tar.gz: c1d7e5906fdec920f9552bc56878426378e22d8a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e424ee1a53b51861c2d3d2495652bf903770ea1d1b87693512603f3075b6b628984fe76e63f02fd6bfe553034c5f859721bc9fc426772421d555c60c6ca51a81
|
7
|
+
data.tar.gz: 9e9fc722074c699e31103e0460e10225c647a99aba4352544b444d2cebd9a85f72527d5f8a202b0376a23a505af96cb6530aa1fdc8ec72661536a108b59591c4
|
data/Gemfile.lock
CHANGED
data/lib/carrierwave/mongoid.rb
CHANGED
@@ -12,7 +12,7 @@ module CarrierWave
|
|
12
12
|
#
|
13
13
|
def mount_uploader(column, uploader=nil, options={}, &block)
|
14
14
|
field_name = options[:mount_on] || column
|
15
|
-
unless fields.keys.include?(field_name.to_s) || fields.values.map { |f| f.options[:as] }.include?(field_name.to_s)
|
15
|
+
unless fields.keys.include?(field_name.to_s) || fields.values.map { |f| f.options[:as].to_s }.include?(field_name.to_s)
|
16
16
|
field field_name
|
17
17
|
end
|
18
18
|
|