dry-ability 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dry/ability/controller/resource.rb +2 -2
- data/lib/dry/ability/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0a41b8018cca231bf806be2c9ca0f3efed9f896a84acb51cb755c4659ba42292
|
4
|
+
data.tar.gz: 87aeb94b116b44112f5efc4cbf7b069cf9a7c1590648f275faeedae3b6b9d852
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 98aed0d0d04418db0824a2e2cb07df901d1e2728ae2d53f14a751b2f4c8b45cdcdd2c9e11930dfd333d55090e33e11121d67fad4fb43fb9b75b313f1835397a2
|
7
|
+
data.tar.gz: b7d2e1f37ab8369da94add8a17630fd3ea5d010609fea5dff53c827893d49bba639c135ad5ea47301eea6ca0a44c2f7283973846a5b1b9061f67777365ddf577
|
@@ -97,8 +97,8 @@ module Dry
|
|
97
97
|
end
|
98
98
|
|
99
99
|
def initial_attributes
|
100
|
-
current_ability.attributes_for(@action_name, resource_class).delete_if do |key,
|
101
|
-
resource_params && resource_params.include?(key)
|
100
|
+
current_ability.attributes_for(@action_name, resource_class).delete_if do |key, value|
|
101
|
+
(resource_params && resource_params.include?(key)) || value.is_a?(Hash)
|
102
102
|
end
|
103
103
|
end
|
104
104
|
|
data/lib/dry/ability/version.rb
CHANGED