mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Update itself.rb [ci skip]
This commit is contained in:
parent
aa7d5372f7
commit
7562c76587
1 changed files with 1 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
class Object
|
||||
unless respond_to?(:itself) # TODO: Remove this file when we drop support to Ruby < 2.2
|
||||
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)
|
||||
|
|
Loading…
Reference in a new issue