diff options
author | bogdanvlviv <bogdanvlviv@gmail.com> | 2018-02-28 00:05:46 +0200 |
---|---|---|
committer | bogdanvlviv <bogdanvlviv@gmail.com> | 2018-02-28 10:29:12 +0200 |
commit | d0c697e9b17a9f22d645503a39f6d6d167d99b94 (patch) | |
tree | 0a07b269764d559126e8b466965b3781f5c5a804 /activesupport/CHANGELOG.md | |
parent | 3a7a21edb2425d305b8b3b2e173bd53285d55f64 (diff) | |
download | rails-d0c697e9b17a9f22d645503a39f6d6d167d99b94.tar.gz rails-d0c697e9b17a9f22d645503a39f6d6d167d99b94.tar.bz2 rails-d0c697e9b17a9f22d645503a39f6d6d167d99b94.zip |
Add separate test to ensure that `delegate` with `:private` option returns correct value
Remove extra comments `# Asking for private method` in activesupport/test/core_ext/module_test.rb
Improve docs of using `delegate` with `:private`
Update changelog of #31944
Diffstat (limited to 'activesupport/CHANGELOG.md')
-rw-r--r-- | activesupport/CHANGELOG.md | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/activesupport/CHANGELOG.md b/activesupport/CHANGELOG.md index be1862279c..a7af51f83e 100644 --- a/activesupport/CHANGELOG.md +++ b/activesupport/CHANGELOG.md @@ -1,8 +1,7 @@ ## Rails 6.0.0.alpha (Unreleased) ## -* Add `private: true` option to ActiveSupport's `delegate`. - - In order to delegate methods as private methods: +* Add `:private` option to ActiveSupport's `Module#delegate` + in order to delegate methods as private: class User < ActiveRecord::Base has_one :profile @@ -17,8 +16,6 @@ # User.new.date_of_birth # => NoMethodError: private method `date_of_birth' called for #<User:0x00000008221340> - More information in #31944. - *Tomas Valent* * `String#truncate_bytes` to truncate a string to a maximum bytesize without |