Eliminate boosts#index async loading in favor of inlining
This commit is contained in:
@@ -1,9 +1,6 @@
|
||||
class BoostsController < ApplicationController
|
||||
include BubbleScoped, ProjectScoped
|
||||
|
||||
def index
|
||||
end
|
||||
|
||||
def create
|
||||
@bubble.boosts.create!
|
||||
end
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
<%= turbo_frame_tag dom_id(@bubble, :boosts) do %>
|
||||
<%= render "boosts/boosts", bubble: @bubble %>
|
||||
<% end %>
|
||||
@@ -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 %>
|
||||
|
||||
Reference in New Issue
Block a user