ar_doc_store 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 48ad29e9c95f9d9e857a6d7a88cab4f75b8c1082
4
- data.tar.gz: 9a9c0abf7839ce86d0f070e69bc48244a58f2dc0
3
+ metadata.gz: d4d64c74ac0e43d0c6a2c595b39ff91782f9716f
4
+ data.tar.gz: 50b718496b56b4ee09080952f09fcddc9cc0c9fa
5
5
  SHA512:
6
- metadata.gz: 04ea920737abd6556587d55d5392047ff0a8a152bcb820ac07ac587513f3938b292df08fa2528e56feadd3cfdd7dfbbea37ba63d81cc3f610a764310525a69a3
7
- data.tar.gz: d04f96964ac8090df5d7d43a6b7d76a8ac23214fc60731a40d57ffbbd76feecfe84f799dcff3c21c9417746b5bfee2696b68af204386e64d9cc0944ec87d6503
6
+ metadata.gz: 1b2ae70879b92307b2c5b04ed9b4792ecf5906fa4822836720fa1c46a04190afef0d7951f5797946a62dc01c2c7616b4a0f75a4f9e6133cf71ad2cf65efb9b5e
7
+ data.tar.gz: f8bfcfb2787e64544fba25784b3ca735976c990f61f2c08161403934205bb3955d3d28f5ec33cdada2840f15ec757fbd475079b2cad68544313e26ab1011eb25
@@ -82,7 +82,12 @@ module ArDocStore
82
82
  if @_initialized
83
83
  old_value = attributes[attribute]
84
84
  if attribute.to_s != 'id' && value != old_value
85
- public_send :"#{attribute}_will_change!"
85
+ if Rails.version >= '5.2.0'
86
+ set_attribute_was(attribute, old_value)
87
+ mutations_from_database.force_change(attribute)
88
+ else
89
+ public_send :"#{attribute}_will_change!"
90
+ end
86
91
  parent.data_will_change! if parent
87
92
  end
88
93
 
@@ -1,7 +1,5 @@
1
1
  module ArDocStore
2
-
3
2
  module Model
4
-
5
3
  def self.included(mod)
6
4
  mod.send :include, ArDocStore::Storage
7
5
  mod.send :include, ArDocStore::Embedding
@@ -21,4 +19,4 @@ module ArDocStore
21
19
 
22
20
  end
23
21
  end
24
- end
22
+ end
@@ -1,3 +1,3 @@
1
1
  module ArDocStore
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ar_doc_store
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Furber
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-13 00:00:00.000000000 Z
11
+ date: 2018-05-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -130,7 +130,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
130
130
  version: '0'
131
131
  requirements: []
132
132
  rubyforge_project:
133
- rubygems_version: 2.4.5.1
133
+ rubygems_version: 2.6.13
134
134
  signing_key:
135
135
  specification_version: 4
136
136
  summary: A document storage gem meant for ActiveRecord PostgresQL JSON storage.