method

then

Importance_1
v7.1.3.2 - Show latest stable - 0 notes - Class: Promise
then(&block) public

Returns a new +ActiveRecord::Promise+ that will apply the passed block when the value is accessed:

Post.async_pick(:title).then { |title| title.upcase }.value
# => "POST TITLE"
Show source
Register or log in to add new notes.