method

itself

Importance_1
Ruby on Rails latest stable (v6.1.7.7) - 0 notes - Class: Object

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v4.2.9) is shown here.

itself() public

Returns the object itself.

Useful for chaining methods, such as Active Record scopes:

Event.public_send(state.presence_in([ :trashed, :drafted ]) || :itself).order(:created_at)

@return Object

Show source
Register or log in to add new notes.