method

then

rails latest stable - Class: ActiveRecord::Relation

Method not available on this version

This method is only available on newer versions. The first available version (v8.0.0) is shown here.

then(&block)
public

No documentation available.

# File activerecord/lib/active_record/relation.rb, line 1157
    def then(&block) # :nodoc:
      if @future_result
        @future_result.then do
          yield self
        end
      else
        super
      end
    end