shrine-reform 0.1.2 → 0.1.3

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: e5b40488b9678e2a445616c8c6bd0a705c6d51ba
4
- data.tar.gz: 6b178ce5601c2788cbdd5caf0f3b9645e8fb3b44
3
+ metadata.gz: 2d89af700fc9ded07fe29ae0fc9d63d48ad8c34c
4
+ data.tar.gz: 0af7dd7d5e6b0455a8db765f33beaeac62d02ab7
5
5
  SHA512:
6
- metadata.gz: b96e07db1cadc221d3555482f86b24eca3a658f69dc1f0ca99cb1c837dec5571cd6ce3a715283b6845d0f410cc1ce0c1a9cfc74cdf6a699f453afd059c2e82e1
7
- data.tar.gz: e0d0baa65de2f197445bbac2ae407930292faf47e5de3d9943e234b5e3fdbdee888cdd0dbc2821df30a8027ed1a11b3f255bf3475c841319e836b951882564ed
6
+ metadata.gz: e7b525e6c5973be6bfe8b897c8a75b1a6f7a5fc5a507f393cb545f2803effa953b63d0d63920d2e7896bde52b467c596bb7808e7f6f030126180cc3d909cff4c
7
+ data.tar.gz: 700e70c7e15acaa2f789513524066f544b0874b19b974e0bc20f790af0891f34efc2a4df483ea8a817971cf25ee059ed6870777c8b5d0443c7d7acce2b4a0595
@@ -25,7 +25,9 @@ class Shrine
25
25
 
26
26
  def sync(*)
27
27
  super
28
- model.#{@name} = @#{@name}_data if defined?(@#{@name}_data)
28
+ if instance_variable_defined?(:@#{@name}_data)
29
+ model.#{@name} = @#{@name}_data if model.respond_to?(:#{@name}=)
30
+ end
29
31
  end
30
32
  RUBY
31
33
 
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |gem|
2
2
  gem.name = "shrine-reform"
3
- gem.version = "0.1.2"
3
+ gem.version = "0.1.3"
4
4
 
5
5
  gem.required_ruby_version = ">= 2.1"
6
6
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shrine-reform
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
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-05-19 00:00:00.000000000 Z
11
+ date: 2016-07-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: shrine
@@ -144,4 +144,3 @@ signing_key:
144
144
  specification_version: 4
145
145
  summary: Provides Reform integration for Shrine.
146
146
  test_files: []
147
- has_rdoc: