globalize-paranoia 0.1.1 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/globalize/paranoia.rb +3 -2
- data/lib/globalize/{versioning → paranoia}/version.rb +1 -1
- metadata +4 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: b6761bd3ec4707a7a3b052926caf6efbd3d7f2f51c621ab7779a5e8a8bad5dbe
|
4
|
+
data.tar.gz: c884fe49c1c78f075a259b1febb2b01c9a1e45e82a024e3bb4bfeccfe300967c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a353a1680e607c829137d122d428be8174fc70d556d04d3690806f56ed9df542b172d9167abc5315b8d0181a5e933d449426665c0bec8b4829bf25c125c14173
|
7
|
+
data.tar.gz: 12c644d59b3690af0e98675bd132bd40dd85a1bc508578b0fb97ce74f75eaedae98928792266c67f428276a2edb44f1293cdbbd0b11847dd5b88a86940cb7e48
|
data/lib/globalize/paranoia.rb
CHANGED
@@ -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
|
-
|
13
|
+
alias_method :setup_translates_without_paranoia!, :setup_translates!
|
14
|
+
alias_method :setup_translates!, :setup_translates_with_paranoia!
|
14
15
|
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.
|
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:
|
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/
|
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.
|
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:
|