aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/CHANGELOG.md
diff options
context:
space:
mode:
authorPrathamesh Sonpatki <csonpatki@gmail.com>2016-03-09 15:36:45 +0530
committerPrathamesh Sonpatki <csonpatki@gmail.com>2016-04-05 12:55:02 +0530
commit7bdb4b5598ec9bd7473f52e59ee58682c4d23801 (patch)
tree3648b3b62e5eb6ef77c9ca44935d5a34e1710dd7 /activemodel/CHANGELOG.md
parent2a53011fd35b6c1d6b76993bf12352d7fe7d31c8 (diff)
downloadrails-7bdb4b5598ec9bd7473f52e59ee58682c4d23801.tar.gz
rails-7bdb4b5598ec9bd7473f52e59ee58682c4d23801.tar.bz2
rails-7bdb4b5598ec9bd7473f52e59ee58682c4d23801.zip
Allow passing record being validated to error message generator
- Pass object to I18n helper so that when calling message proc, it will pass that object as argument to the proc and we can generate custom error messages based on current record being validated. - Based on https://github.com/rails/rails/issues/856. [Ɓukasz Bandzarewicz, Prathamesh Sonpatki]
Diffstat (limited to 'activemodel/CHANGELOG.md')
-rw-r--r--activemodel/CHANGELOG.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/activemodel/CHANGELOG.md b/activemodel/CHANGELOG.md
index fb7ab5cb40..7be8b2e522 100644
--- a/activemodel/CHANGELOG.md
+++ b/activemodel/CHANGELOG.md
@@ -1,3 +1,8 @@
+* Allow passing record being validated to the message proc to generate
+ customized error messages for that object using I18n helper.
+
+ *Prathamesh Sonpatki*
+
## Rails 5.0.0.beta3 (February 24, 2016) ##
* No changes.