rails-param-validation 0.1.1 → 0.1.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: 9b55168eefe4dc2b76d0a342546f807ea6b22475a7a1798a03a53c04943726a6
4
- data.tar.gz: e3c250dbb5fc1f9766f75a32146e72a42a1a7250cb261fc528088ac0e6785735
3
+ metadata.gz: 48a1fa3f1a48672b525b0d690217217a0d3552168d0a8abe2ec6b60e57c179a5
4
+ data.tar.gz: 024efd90c1662104364b1d66047f96b505520b8938e39533f999c269ca09b038
5
5
  SHA512:
6
- metadata.gz: e9591ca7d203ddc520b95a9e1bcce791259d5f16ef31a43b816c6caecf53a1f68214c2b1376b38a822f59d54b29fd35bfccd30e0858361aec3c5e56700dd3a14
7
- data.tar.gz: d5d75b3730271590d2c5fb30ad0b7c888a13f350b38af3da66a305e3464f84821145c8147ab81e5072cb4e6394b7f63d02356e1c2a5fb838d3911a3c3d904d24
6
+ metadata.gz: c8025d62a6b23ee1526dc3b2f94592b51a3b37cc5e194122f4fa259bd3ca2f47b617fe149fb656ad0abfa6f773c003984246dd5e5b8c782c770ac94d7477478e
7
+ data.tar.gz: 13e08dda8a5baa630e3a808c3a37d7c24f8fc4b13959e0aa3131ef05f473b3eab6859dd37927604727419308a5fe3a16d4f6b0848082bdfb41786fc21c14f4ba
@@ -38,7 +38,7 @@ module RailsParamValidation
38
38
 
39
39
  if result.matches?
40
40
  # Copy the parameters if the validation succeeded
41
- @validated_parameters = result.value
41
+ @validated_parameters = result.value.merge(action: action, controller: controller)
42
42
  else
43
43
  # Render an appropriate error message
44
44
  _render_invalid_param_response result
@@ -1,3 +1,3 @@
1
1
  module RailsParamValidation
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-param-validation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oskar Kirmis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-08 00:00:00.000000000 Z
11
+ date: 2020-04-21 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Declarative parameter definition and validation for Rails
14
14
  email: