globalize-paranoia 0.1.1 → 0.1.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
- SHA1:
3
- metadata.gz: 8516096ee5d97978825d12df4147a63b48bafb72
4
- data.tar.gz: 3c74cc46adda3cc974bda1a6c4313e5648e5a917
2
+ SHA256:
3
+ metadata.gz: b6761bd3ec4707a7a3b052926caf6efbd3d7f2f51c621ab7779a5e8a8bad5dbe
4
+ data.tar.gz: c884fe49c1c78f075a259b1febb2b01c9a1e45e82a024e3bb4bfeccfe300967c
5
5
  SHA512:
6
- metadata.gz: 0cd39d6c7f8a3a45a9676147f1379f23993f1c7b82d9b3c4f377450e57a9b9bd1e2f5bfdf80fb5d54176e110702f6124d5cd72dff61ee674ce33c1698f9856f7
7
- data.tar.gz: 7f1284127fcb0717ed538edff68c34742ccea524c01a9da19dac62e18ddfef21fe911d01a44c4b1dacf33658ff5331c7df94cbcc41425a2711379c629bcfd776
6
+ metadata.gz: a353a1680e607c829137d122d428be8174fc70d556d04d3690806f56ed9df542b172d9167abc5315b8d0181a5e933d449426665c0bec8b4829bf25c125c14173
7
+ data.tar.gz: 12c644d59b3690af0e98675bd132bd40dd85a1bc508578b0fb97ce74f75eaedae98928792266c67f428276a2edb44f1293cdbbd0b11847dd5b88a86940cb7e48
@@ -6,9 +6,10 @@ Globalize::ActiveRecord::ActMacro.module_eval do
6
6
  setup_translates_without_paranoia!(options)
7
7
 
8
8
  if options[:paranoia] && translation_class.attribute_names.include?('deleted_at')
9
- translation_class.send(:acts_as_paranoid)
9
+ translation_class.send(:acts_as_paranoid, without_default_scope: true)
10
10
  end
11
11
  end
12
12
 
13
- alias_method_chain :setup_translates!, :paranoia
13
+ alias_method :setup_translates_without_paranoia!, :setup_translates!
14
+ alias_method :setup_translates!, :setup_translates_with_paranoia!
14
15
  end
@@ -1,5 +1,5 @@
1
1
  module Globalize
2
2
  module Paranoia
3
- VERSION = '0.1.1'
3
+ VERSION = '0.1.3'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: globalize-paranoia
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jef Vlamings
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-12 00:00:00.000000000 Z
11
+ date: 2018-11-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -147,7 +147,7 @@ files:
147
147
  - Rakefile
148
148
  - lib/globalize-paranoia.rb
149
149
  - lib/globalize/paranoia.rb
150
- - lib/globalize/versioning/version.rb
150
+ - lib/globalize/paranoia/version.rb
151
151
  homepage: https://github.com/jefvlamings/globalize-paranoia
152
152
  licenses:
153
153
  - MIT
@@ -168,9 +168,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
168
168
  version: '0'
169
169
  requirements: []
170
170
  rubyforge_project:
171
- rubygems_version: 2.5.1
171
+ rubygems_version: 2.7.7
172
172
  signing_key:
173
173
  specification_version: 4
174
174
  summary: Adapter for using Paranoia with Globalize
175
175
  test_files: []
176
- has_rdoc: