From 7562c76587eac7149c037d3648c2fa5616f80ff3 Mon Sep 17 00:00:00 2001 From: Jon Atack Date: Tue, 5 Aug 2014 00:05:23 +0200 Subject: Update itself.rb [ci skip] --- activesupport/lib/active_support/core_ext/object/itself.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activesupport') diff --git a/activesupport/lib/active_support/core_ext/object/itself.rb b/activesupport/lib/active_support/core_ext/object/itself.rb index 90cd6b1c57..3065e956c6 100644 --- a/activesupport/lib/active_support/core_ext/object/itself.rb +++ b/activesupport/lib/active_support/core_ext/object/itself.rb @@ -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) -- cgit v1.2.3