summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoah Kantrowitz <noah@coderanger.net>2017-04-03 22:08:04 -0500
committerNoah Kantrowitz <noah@coderanger.net>2017-04-03 22:08:04 -0500
commit55feb2b55bd37a895fcb3d3291c60b1e05334ad7 (patch)
tree546477bac6f5a68a438efadaa2f8ae9d97c43251
parente53c037b74298fb687d189ef575dc09568b771d4 (diff)
downloadchef-55feb2b55bd37a895fcb3d3291c60b1e05334ad7.tar.gz
Add a release note.
Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
-rw-r--r--RELEASE_NOTES.md16
1 files changed, 16 insertions, 0 deletions
diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md
index b1e33fbc9f..9daa0046a6 100644
--- a/RELEASE_NOTES.md
+++ b/RELEASE_NOTES.md
@@ -193,3 +193,19 @@ This will also affect nokogiri, but that gem natively supports UTF-8, UTF-16LE/B
who really need to write something like Shift-JIS inside of XML will need to either maintain their own nokogiri installs or will need to
convert to using UTF-8.
+### Default values for resource properties are frozen
+
+A resource declaring something like:
+
+```ruby
+property :x, default: {}
+```
+
+will now see the default value set to be immutable. This prevents cases of
+modifying the default in one resource affecting others. If you want a per-resource
+mutable default value, define it inside a `lazy{}` helper like:
+
+```ruby
+property :x, default: lazy { {} }
+```
+