effective_obfuscation 1.0.3 → 1.1.0

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: 965b2c5a89156eb09250013de2ed06c890ec2e2b
4
- data.tar.gz: 18cac14cd25267a9cc399078a137ba691e8cf519
3
+ metadata.gz: 38664ff81e5d973cf1235e5ee5fa563a785f9ba9
4
+ data.tar.gz: 1416f5980533a3cb99fc3164b0da7b33be0981e9
5
5
  SHA512:
6
- metadata.gz: 9f06d20fd272e2fd8173091192165736e819b4114a42a49859b6751e249cbbfae44bad954353950a6ea1cccaa9dbd53c0a74be23ed53007ee7e6b8ef9fd2d1a4
7
- data.tar.gz: 3e1b7c89aeef8f178556bda29f45ada087839a70af422ca6946fba813fd68d5fd95649afd6b9c929a86fc56b5e89f625cbc8751e891872dc59fe09817273b1b8
6
+ metadata.gz: 8de7348380a0ec30210ad89c407581f0c4fa9d14448ce6b16eac64662dd2371186975f4f90a57d47f764c534ba2fa179cdfa43b71f11c2321b0936f03386b326
7
+ data.tar.gz: b05b65890376394a9d8eb3be32d6135aa74f96e0649e13809c82f3130e251638e618ccca0c361f28145c58a42d460fd6be9c533ba4237f6af2b3c54bc7422fce
@@ -109,8 +109,10 @@ module ActsAsObfuscated
109
109
  acts_as_obfuscated_opts[:max_id] ||= (self.unscoped.maximum(:id) rescue 2147483647)
110
110
  end
111
111
 
112
- def relation
113
- super.tap { |relation| relation.extend(FinderMethods) }
112
+ unless ::ActiveRecord::VERSION::MAJOR == 4 && ::ActiveRecord::VERSION::MINOR == 2
113
+ def relation
114
+ super.tap { |relation| relation.extend(FinderMethods) }
115
+ end
114
116
  end
115
117
  end
116
118
 
@@ -1,3 +1,3 @@
1
1
  module EffectiveObfuscation
2
- VERSION = '1.0.3'.freeze
2
+ VERSION = '1.1.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_obfuscation
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.1.0
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: 2015-11-23 00:00:00.000000000 Z
11
+ date: 2015-11-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails