cancan-eager_load 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cancan/eager_load/rule_extensions.rb +1 -1
- data/lib/cancan/eager_load/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 967d64d85d56a8fc439f0bcb66db99887847aef5de12c5bb4ef250942ce12717
|
4
|
+
data.tar.gz: a3dba4910c730ea0573a6d968ca14e836bdd24e212e66f56b52ec5cf069190db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2f6905f204453d3e57bcfd4938e7434f19813c9bf304af993daff97c8286984ac6655dd9e8c00e70b769db73d9678404ddcf7527a82482a34c8247acab8b49cd
|
7
|
+
data.tar.gz: 45c31087af0c65c699d77d48b91cfb6e8d1649eeaed001c6241e3c5b6809eee38126780cb02849c4b12794816933cfb7cda21edf723de8d6a137681e959b1038
|
@@ -9,7 +9,7 @@ module CanCan
|
|
9
9
|
return nested_subject_matches_conditions?(subject) if subject.class == Hash
|
10
10
|
|
11
11
|
unless subject_class?(subject)
|
12
|
-
subject.includes(conditions_to_includes(@conditions))
|
12
|
+
subject.includes(conditions_to_includes(@conditions)) if subject.is_a?(ActiveRecord::Base)
|
13
13
|
|
14
14
|
return matches_conditions_hash?(subject)
|
15
15
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cancan-eager_load
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aleck Greenham
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-11-
|
11
|
+
date: 2020-11-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord-instance_includes
|