diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2014-08-05 10:16:34 -0300 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2014-08-05 10:19:00 -0300 |
commit | ab2a35878b36d005fc9685403342786cffa23700 (patch) | |
tree | 5630d691e9a9fc7ebdb0f39c9a38b305124d4307 /activesupport | |
parent | e5e4d08450642c77c5e4f8051d478663c57d97a3 (diff) | |
download | rails-ab2a35878b36d005fc9685403342786cffa23700.tar.gz rails-ab2a35878b36d005fc9685403342786cffa23700.tar.bz2 rails-ab2a35878b36d005fc9685403342786cffa23700.zip |
Fix AS docs / changelog with wrong method [ci skip]
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/CHANGELOG.md | 4 | ||||
-rw-r--r-- | activesupport/lib/active_support/core_ext/object/itself.rb | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/activesupport/CHANGELOG.md b/activesupport/CHANGELOG.md index 72fa6722b5..7514faabb2 100644 --- a/activesupport/CHANGELOG.md +++ b/activesupport/CHANGELOG.md @@ -1,7 +1,7 @@ * Added Object#itself which returns the object itself. Useful when dealing with a chaining scenario, like Active Record scopes: - Event.public_send(state.presence_in?([ :trashed, :drafted ]) || :itself).order(:created_at) - + Event.public_send(state.presence_in([ :trashed, :drafted ]) || :itself).order(:created_at) + *DHH* * `Object#with_options` executes block in merging option context when diff --git a/activesupport/lib/active_support/core_ext/object/itself.rb b/activesupport/lib/active_support/core_ext/object/itself.rb index 3065e956c6..adedc20169 100644 --- a/activesupport/lib/active_support/core_ext/object/itself.rb +++ b/activesupport/lib/active_support/core_ext/object/itself.rb @@ -2,7 +2,7 @@ class Object unless respond_to?(:itself) # TODO: Remove this file when we drop support for Ruby < 2.2 # Returns the object itself. Useful when dealing with a chaining scenario, like Active Record scopes: # - # Event.public_send(state.presence_in?([ :trashed, :drafted ]) || :itself).order(:created_at) + # Event.public_send(state.presence_in([ :trashed, :drafted ]) || :itself).order(:created_at) # # @return Object def itself |