aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib/active_model/error.rb
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2019-07-15 20:35:05 +0100
committerGitHub <noreply@github.com>2019-07-15 20:35:05 +0100
commit69cb9eb7adaf2ee1c33ee1dcf6aadd6eafa7b6d2 (patch)
tree61033890c41c15158f5dbce6668e7e14a0beacb2 /activemodel/lib/active_model/error.rb
parent998fa9b158d7b021dd6a7a96bca45b6abc115ba4 (diff)
parent07ff343857699f0806294539947cf485ff205a2b (diff)
downloadrails-69cb9eb7adaf2ee1c33ee1dcf6aadd6eafa7b6d2.tar.gz
rails-69cb9eb7adaf2ee1c33ee1dcf6aadd6eafa7b6d2.tar.bz2
rails-69cb9eb7adaf2ee1c33ee1dcf6aadd6eafa7b6d2.zip
Merge pull request #36640 from Edouard-chin/ec-uniq-validation-fix
Fix errors getting duplicated when passed validations options:
Diffstat (limited to 'activemodel/lib/active_model/error.rb')
-rw-r--r--activemodel/lib/active_model/error.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/lib/active_model/error.rb b/activemodel/lib/active_model/error.rb
index f7267fc7bf..5141bc6789 100644
--- a/activemodel/lib/active_model/error.rb
+++ b/activemodel/lib/active_model/error.rb
@@ -74,7 +74,7 @@ module ActiveModel
protected
def attributes_for_hash
- [@base, @attribute, @raw_type, @options]
+ [@base, @attribute, @raw_type, @options.except(*CALLBACKS_OPTIONS)]
end
end
end