croods 0.2.8 → 0.2.9
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 +4 -4
- data/README.md +5 -7
- data/lib/croods/policy/scope.rb +2 -0
- data/lib/croods/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: c48ff1f8f4575752544cd790c77fe2c9b3ad1986ce56198d4ff552e701043d3b
|
|
4
|
+
data.tar.gz: fe604e9c23a6bbb90890d7056d7c835ae33ac6dad8c63db1151d121f60b13c4a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bab3bfec3298e879dd7d7f1c10c2d65b9b40e51ba5af0d42937d9c8687daf847ceb1004d561dc0faa7ad45fb86296324c992a48a342e906cd3316710f4dd6416
|
|
7
|
+
data.tar.gz: ba23108357cd2bd5de0969c605db9262f363a4231a9aa9b70e17a47373e427d5ae3af454577e6e67f6b42cb129ff25d27ba682be02111c2931a299e93d529b52
|
data/README.md
CHANGED
|
@@ -130,15 +130,13 @@ use_for_authentication!(
|
|
|
130
130
|
## Contributing
|
|
131
131
|
|
|
132
132
|
You can manually check your changes in the dummy Rails app under `/todos`.
|
|
133
|
+
Use it to run integration tests since it doesn't have an UI.
|
|
133
134
|
|
|
134
|
-
|
|
135
|
+
- Clone the repository
|
|
136
|
+
- Install bundler `gem install bundler`
|
|
137
|
+
- Install gems `bin/bundle`
|
|
135
138
|
|
|
136
|
-
|
|
137
|
-
cd todos/
|
|
138
|
-
bin/setup
|
|
139
|
-
```
|
|
140
|
-
|
|
141
|
-
To run specs use:
|
|
139
|
+
To run both Croods-rails' and the example's specs use:
|
|
142
140
|
`bin/rspec`
|
|
143
141
|
|
|
144
142
|
## License
|
data/lib/croods/policy/scope.rb
CHANGED
|
@@ -38,6 +38,8 @@ module Croods
|
|
|
38
38
|
associations = scope.reflect_on_all_associations(:belongs_to)
|
|
39
39
|
|
|
40
40
|
associations.each do |association|
|
|
41
|
+
next if association.options[:optional]
|
|
42
|
+
|
|
41
43
|
model = association.class_name.constantize
|
|
42
44
|
expanded_path = path + [association]
|
|
43
45
|
association_path = reflection_path(model, target, expanded_path)
|
data/lib/croods/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: croods
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.9
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Daniel Weinmann
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-06-
|
|
11
|
+
date: 2020-06-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: committee
|