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 +4 -4
- data/CHANGES.md +4 -0
- data/lib/on_form/rails_compat.rb +1 -1
- data/lib/on_form/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3954acd09fbf4ca235b6b1f7e772f976569d33e9
|
4
|
+
data.tar.gz: 7daa8aad9e92b30e366e916129d8b38f4315e808
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7bd90546fd6e5ed2f3db683203cab7dcf2bc9a472ee2e9dac7a56cd306ea47df02742521f9b92f5a778b482a6334954f739edb0dc1f6dbde82ff1fd62c0fa466
|
7
|
+
data.tar.gz: 67efe21b5c8fd2ecf6ea3ab245d3ab2e7720d7639903b247559c88de412d5b86c4d958a1fcc888aba697605856216d89dcd7d5015efb44084f011ea5c679f713
|
data/CHANGES.md
CHANGED
data/lib/on_form/rails_compat.rb
CHANGED
@@ -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: :
|
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
|
data/lib/on_form/version.rb
CHANGED