effective_trash 0.4.2 → 0.4.4

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
  SHA256:
3
- metadata.gz: e396467b51605c57556e6709d570c9b842a854e70d4b2a438095ae27c6588ce4
4
- data.tar.gz: 4564fe2452cb161287809d21da658a66014aa155e0af8a99f069019edf6e8c70
3
+ metadata.gz: d3502b38f4aa2cc6d54549502a78825dc2cb6001e5e6ffff7f77700829425d04
4
+ data.tar.gz: 708c7becb68d60bfd469599780abeeccfa73fa7e15585dc005a8e9f92f91b90b
5
5
  SHA512:
6
- metadata.gz: 2a96ee36e53a801f9c126e61f63bac62ee9d063017aa870892f56257d80ceb3e4a5ab929694a82a9be86c6f05b09143e7bf0358444062dcb80350d62946bd385
7
- data.tar.gz: a2f6b828a1c74e64eb2e361fdf33f19a5492c925295f459a21f7c72be839352a379b36291fdf17b7a6ef9516a13e63b96ba29c1678838046bf824d81ac71778c
6
+ metadata.gz: 59ffc3c60dcca824cad433d876a87ccb9fcbcd33b2c93d2b260b7003d9ea5a97d6876f99317a52966e2c62b200ff750c04ac32368a4ea5edc984e972a4cbfc3c
7
+ data.tar.gz: 427977e12249a3f2fb6a9b8f0d586a38d93ada9cb178054f99ebc90b4336c5c6cd273e73c61dc859692834168d5dbb6847c131d2775d6234827b0786956be229
@@ -14,7 +14,11 @@ module Effective
14
14
  # details :text
15
15
  # timestamps
16
16
 
17
- serialize :details, Hash
17
+ if EffectiveResources.serialize_with_coder?
18
+ serialize :details, type: Hash, coder: YAML
19
+ else
20
+ serialize :details, Hash
21
+ end
18
22
 
19
23
  scope :deep, -> { includes(:user, :trashed) }
20
24
  scope :sorted, -> { order(:id) }
@@ -1,3 +1,5 @@
1
+ require_relative '../../app/models/concerns/acts_as_trashable.rb'
2
+
1
3
  module EffectiveTrash
2
4
  class Engine < ::Rails::Engine
3
5
  engine_name 'effective_trash'
@@ -1,3 +1,3 @@
1
1
  module EffectiveTrash
2
- VERSION = '0.4.2'.freeze
2
+ VERSION = '0.4.4'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_trash
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-23 00:00:00.000000000 Z
11
+ date: 2023-11-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -116,7 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
116
116
  - !ruby/object:Gem::Version
117
117
  version: '0'
118
118
  requirements: []
119
- rubygems_version: 3.1.2
119
+ rubygems_version: 3.4.10
120
120
  signing_key:
121
121
  specification_version: 4
122
122
  summary: Trash and Restore any Active Record object.