effective_resources 1.7.1 → 1.7.2

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
  SHA256:
3
- metadata.gz: 907d2532f74c1cb4ef84e6266ded04a2574c9c0e9ccecd26416f39f360ef24bf
4
- data.tar.gz: 33375d7283775217fb4ffb1d10f6e88032f80c1cebd33341fad3b00ed3d44000
3
+ metadata.gz: a3a189848d1642d5a68d1bbae816eddf3bd4d51513d28bd369a02aa1843b5b9a
4
+ data.tar.gz: ab0af0abaefa639595858f4eee2356d2ba2b96434c3d493d6a1e1cdd49877bf1
5
5
  SHA512:
6
- metadata.gz: 7f1d9b72921bd70f50ed839edbdb7f1be5787f43ecfcefdfd24fc7903dfeac0a886486ebea6e7c9e2d832bd17c62137b765d0a64d6619e22e3a22bff113b36e4
7
- data.tar.gz: 8ff7a999b54f1b0c1f52728c57cd7a7ed8eeae1ad82aecb435ae004bb6dbf84444df410bd52d8d8470b5bdf8ef863e467283232f9d012a68f50ef8cf1f6b03c7
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) || effective_resource.active_model?
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
 
@@ -1,3 +1,3 @@
1
1
  module EffectiveResources
2
- VERSION = '1.7.1'.freeze
2
+ VERSION = '1.7.2'.freeze
3
3
  end
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.1
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-16 00:00:00.000000000 Z
11
+ date: 2021-01-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails