Method: ActiveRecord::Relation#then

Defined in:
activerecord/lib/active_record/relation.rb

#then(&block) ⇒ Object

:nodoc:



1157
1158
1159
1160
1161
1162
1163
1164
1165
# 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