diff options
Diffstat (limited to 'activesupport/lib/active_support/core_ext/object')
-rw-r--r-- | activesupport/lib/active_support/core_ext/object/itself.rb (renamed from activesupport/lib/active_support/core_ext/object/self.rb) | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/core_ext/object/self.rb b/activesupport/lib/active_support/core_ext/object/itself.rb index 5c51bf56c9..df613c4e4f 100644 --- a/activesupport/lib/active_support/core_ext/object/self.rb +++ b/activesupport/lib/active_support/core_ext/object/itself.rb @@ -1,10 +1,10 @@ class Object # Returns the object itself. Useful when dealing with a chaining scenario, like Active Record scopes: # - # Event.public_send(state.presence_in?([ :trashed, :drafted ]) ? :self).order(:created_at) + # Event.public_send(state.presence_in?([ :trashed, :drafted ]) || :itself).order(:created_at) # # @return Object - def self + def itself self end end
\ No newline at end of file |