aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/CHANGELOG.md
diff options
context:
space:
mode:
authorAnton Khamets <colorfulfool@gmail.com>2017-08-13 01:23:17 +0300
committerRafael França <rafaelmfranca@gmail.com>2017-08-12 18:23:17 -0400
commite6c310b3f8144e9e08bc20a16d9889974d890030 (patch)
treeb05891804e5a20234cbe42d4ea9ab042b3015012 /activesupport/CHANGELOG.md
parent98360a96cc1e0bb6ab9eb31f421a36439e66eefc (diff)
downloadrails-e6c310b3f8144e9e08bc20a16d9889974d890030.tar.gz
rails-e6c310b3f8144e9e08bc20a16d9889974d890030.tar.bz2
rails-e6c310b3f8144e9e08bc20a16d9889974d890030.zip
Test for the new exception of delegate_missing_to (#30191)
* Add test for the new exception of delegate_missing_to * Add a changelog entry * Only check for nil if NoMethodError was raised * Make method private * Have to pass both target name and value * Inline the re-raise [Rafael Mendonça França + Anton Khamets]
Diffstat (limited to 'activesupport/CHANGELOG.md')
-rw-r--r--activesupport/CHANGELOG.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/activesupport/CHANGELOG.md b/activesupport/CHANGELOG.md
index d5087f67af..ac1043df78 100644
--- a/activesupport/CHANGELOG.md
+++ b/activesupport/CHANGELOG.md
@@ -1,3 +1,8 @@
+* `Module#delegate_missing_to` now raises `DelegationError` if target is nil,
+ similar to `Module#delegate`.
+
+ *Anton Khamets*
+
* Update `String#camelize` to provide feedback when wrong option is passed
`String#camelize` was returning nil without any feedback when an