method
itself
v4.2.9 -
Show latest stable
- Class:
Object
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