1
0
Fork 0
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:
Jon Atack 2014-08-05 00:05:23 +02:00
parent aa7d5372f7
commit 7562c76587

View file

@ -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)