effective_resources 1.7.1 → 1.7.2
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
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a3a189848d1642d5a68d1bbae816eddf3bd4d51513d28bd369a02aa1843b5b9a
|
|
4
|
+
data.tar.gz: ab0af0abaefa639595858f4eee2356d2ba2b96434c3d493d6a1e1cdd49877bf1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 660470293ca5400697b468ea97a95458a46b323ba6399ce35dea43dc2f535afdf86cae6c7f341cfea69a8ca13f54cbd156bc80fcb0d9fe11ec3c97e5c1aafbc7
|
|
7
|
+
data.tar.gz: 7e479eef9412d2195465f1cf4194f594dba7bcb5ec47179730098042cda8d151cc855fe52d09972ef9fad0e70a104ec982af49f13ea5e9e7b6d3c9f77bc35e02
|
|
@@ -61,7 +61,7 @@ module Effective
|
|
|
61
61
|
|
|
62
62
|
resource = Effective::Resource.new(controller_path, relation: relation)
|
|
63
63
|
|
|
64
|
-
unless resource.relation.kind_of?(ActiveRecord::Relation) ||
|
|
64
|
+
unless resource.relation.kind_of?(ActiveRecord::Relation) || resource.active_model?
|
|
65
65
|
raise("unable to build resource_scope for #{resource.klass || 'unknown klass'}. Please name your controller to match an existing model, or manually define a resource_scope.")
|
|
66
66
|
end
|
|
67
67
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: effective_resources
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.7.
|
|
4
|
+
version: 1.7.2
|
|
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: 2021-01-
|
|
11
|
+
date: 2021-01-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|