Eliminate boosts#index async loading in favor of inlining

This commit is contained in:
Jeffrey Hardy
2024-09-18 15:24:09 -04:00
parent 96a5ad37d5
commit 9b52dd1b52
3 changed files with 4 additions and 7 deletions
-3
View File
@@ -1,9 +1,6 @@
class BoostsController < ApplicationController
include BubbleScoped, ProjectScoped
def index
end
def create
@bubble.boosts.create!
end
-3
View File
@@ -1,3 +0,0 @@
<%= turbo_frame_tag dom_id(@bubble, :boosts) do %>
<%= render "boosts/boosts", bubble: @bubble %>
<% end %>
+4 -1
View File
@@ -4,5 +4,8 @@
animation_play_class: "boosting",
toggle_class_toggle_class: "boosting",
action: "animationend->toggle-class#toggle" } do %>
<%= turbo_frame_tag dom_id(bubble, :boosts), src: project_bubble_boosts_path(bubble.project, bubble) %>
<%= turbo_frame_tag dom_id(bubble, :boosts) do %>
<%= render "boosts/boosts", bubble: bubble %>
<% end %>
<% end %>