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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8d5704a2a2bf2199fda53a0a74556d9f93c1cc82a46ef9d9912d2452f34fce4f
4
- data.tar.gz: b9dd8b4243ad05c462fd14a2052c623bac572588941368f3943a91d6228ce548
3
+ metadata.gz: 0a41b8018cca231bf806be2c9ca0f3efed9f896a84acb51cb755c4659ba42292
4
+ data.tar.gz: 87aeb94b116b44112f5efc4cbf7b069cf9a7c1590648f275faeedae3b6b9d852
5
5
  SHA512:
6
- metadata.gz: 816667eb2d315a2fda11b40df7e1a5bef065f4425cb4a6785e9bcf617c4761670b9b406f3ddfacef5d0ccde498ef9d226c2f6a4a66596ee8dee0b0c1f04a4944
7
- data.tar.gz: de539543156d5b2b9878a0057f4e5271100c06d7d74d9fce7e5abe56215d85a6d7a68db281f258838eff31e6bf044d0b125b52de6b766a9d0392f6f6115a3cb6
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
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Dry
4
4
  module Ability
5
- VERSION = '0.0.1'
5
+ VERSION = '0.0.2'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dry-ability
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anton Semenov