stronger_parameters 2.6.2 → 2.7.0

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
  SHA1:
3
- metadata.gz: 299c7bd1fe7c81d42e0e6347e71d9a49df970527
4
- data.tar.gz: ddd444a412f3e61ab4d6082e11982631d799b230
3
+ metadata.gz: 44698724e39acaded3b387e94f5c2c6e83b88555
4
+ data.tar.gz: 49aa2b14a5d4d9348c92e79c58310552e1dcdddc
5
5
  SHA512:
6
- metadata.gz: 13a851faf6f008956e2b6d9848872a7f1baa94fd23f24610e65ae863c1c28ee7362600b3f126c23507f59abf1d53b4bc513aab88ab799d780b43a16f3018337e
7
- data.tar.gz: 30b8ba5dc67b2e65838d753a82cc6bc9548bfb56ed06a98d89c0ecbc9d67e38e506372db22e5efcdd6ecfa099dcb1eaee143fdecfeb35c7c845f544323e76eb1
6
+ metadata.gz: 98d2d44613d8c56f59e42143d344160ab4a7240cca977555e6576c7f391908d1b6e5e3c7ac7222f49eb8ced23095a370382dc47d5f76d186162ce9bbd6567bb3
7
+ data.tar.gz: f83fb3b52e66157edb4a8d9c184d8e3b594d65d7285f3a355d3d9c93bd8c60f3a0464072795ac63e9bce25d59a152bf90edee491ee2d196dc8d5c5e8dd6a4b2d
@@ -14,7 +14,7 @@ module StrongerParameters
14
14
  def initialize(invalid_value, key)
15
15
  @value = invalid_value.value
16
16
  @key = key
17
- super(invalid_value.message)
17
+ super("Invalid parameter: #{@key} #{invalid_value.message}")
18
18
  end
19
19
  end
20
20
  end
@@ -177,7 +177,7 @@ module StrongerParameters
177
177
 
178
178
  included do
179
179
  rescue_from(StrongerParameters::InvalidParameter) do |e|
180
- render (ActiveSupport::VERSION::MAJOR < 5 ? :text : :plain) => "Invalid parameter: #{e.key} #{e.message}", :status => :bad_request
180
+ render (ActiveSupport::VERSION::MAJOR < 5 ? :text : :plain) => e.message, :status => :bad_request
181
181
  end
182
182
  end
183
183
  end
@@ -1,3 +1,3 @@
1
1
  module StrongerParameters
2
- VERSION = '2.6.2'
2
+ VERSION = '2.7.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stronger_parameters
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.2
4
+ version: 2.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mick Staugaard
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-08 00:00:00.000000000 Z
11
+ date: 2017-05-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler