on_form 2.2.0 → 2.2.1

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: ef390c085a64b23daf7e8439918a5db0c33d351f
4
- data.tar.gz: fb98c2b228bfb52f2a732a09d513afa7643f840e
3
+ metadata.gz: 3954acd09fbf4ca235b6b1f7e772f976569d33e9
4
+ data.tar.gz: 7daa8aad9e92b30e366e916129d8b38f4315e808
5
5
  SHA512:
6
- metadata.gz: fb5bf8f542ea1243dfe9f232e7cf8fe603b8ab908142d1a657c2c99bd38c41c8c125486a356815881192f6c776f5705e90ee12a9e5d56e4034da710906c3f8d4
7
- data.tar.gz: 6dcf2fa5591a255808602edba8399b0625d36c63d6fd9cd65e8c8e0dce24fda3b51c2e1ec5f134501a94e11451c587cc3ed45f8b8e4a9ee344784e635d9d947d
6
+ metadata.gz: 7bd90546fd6e5ed2f3db683203cab7dcf2bc9a472ee2e9dac7a56cd306ea47df02742521f9b92f5a778b482a6334954f739edb0dc1f6dbde82ff1fd62c0fa466
7
+ data.tar.gz: 67efe21b5c8fd2ecf6ea3ab245d3ab2e7720d7639903b247559c88de412d5b86c4d958a1fcc888aba697605856216d89dcd7d5015efb44084f011ea5c679f713
data/CHANGES.md CHANGED
@@ -1,6 +1,10 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
+ 2.2.1
5
+ -----
6
+ * Fill in the validation error message for Rails 4.2.
7
+
4
8
  2.2.0
5
9
  -----
6
10
  * Remove the previously existing transaction caveat around model-less saves.
@@ -79,7 +79,7 @@ unless ActiveModel.const_defined?(:ValidationError)
79
79
  def initialize(model)
80
80
  @model = model
81
81
  errors = @model.errors.full_messages.join(", ")
82
- super(I18n.t(:"#{@model.class.i18n_scope}.errors.messages.model_invalid", errors: errors, default: :"errors.messages.model_invalid"))
82
+ super(I18n.t(:"#{@model.class.i18n_scope}.errors.messages.model_invalid", errors: errors, default: "Validation failed: %{errors}"))
83
83
  end
84
84
  end
85
85
  end
@@ -1,3 +1,3 @@
1
1
  module OnForm
2
- VERSION = "2.2.0"
2
+ VERSION = "2.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: on_form
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Will Bryant