shrine-mongoid 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/shrine/plugins/mongoid.rb +2 -2
- data/shrine-mongoid.gemspec +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: 57e8074d1177a967d34f11e671e01ca011b2d08d
|
4
|
+
data.tar.gz: 737c5fb3b21b46b6bca34253346c14d30ea90ff3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6622c78d9f8d205edc329caa0d53dd1c402e561540d9e0e8fa38c53c8cc5a9b2f15c4e74988097229bee232b66f45b236b86286c5b251d019a389c3499bac754
|
7
|
+
data.tar.gz: 8ad32c101b8b62b9d3e5d05ebc9fe8283ae681d96acad41d7fe985e5b11a917fccd9e29c551dda2f352c5b38e1c3665b18d640867c102d4b1b5db92f7df7742e
|
@@ -50,8 +50,6 @@ class Shrine
|
|
50
50
|
end
|
51
51
|
|
52
52
|
module AttacherMethods
|
53
|
-
private
|
54
|
-
|
55
53
|
# Updates the current attachment with the new one, unless the current
|
56
54
|
# attachment has changed.
|
57
55
|
def swap(uploaded_file)
|
@@ -60,6 +58,8 @@ class Shrine
|
|
60
58
|
rescue ::Mongoid::Errors::DocumentNotFound
|
61
59
|
end
|
62
60
|
|
61
|
+
private
|
62
|
+
|
63
63
|
# We save the record after updating, raising any validation errors.
|
64
64
|
def update(uploaded_file)
|
65
65
|
super
|
data/shrine-mongoid.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shrine-mongoid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Janko Marohnić
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-07-
|
11
|
+
date: 2016-07-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: shrine
|