Skip to content

Commit

Permalink
Update sgml.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
joeldrapper committed Apr 4, 2024
1 parent c11650d commit fcec5ef
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/phlex/rails/sgml.rb
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,10 @@ def __text__(content)
end
end

# @api private
def await(task)
if task.is_a?(ActiveRecord::Relation)
case task
when ActiveRecord::Relation
flush unless task.loaded?

task
else
super
Expand Down

0 comments on commit fcec5ef

Please sign in to comment.