Files
fizzy/app/controllers/bubbles/pops_controller.rb
T
David Heinemeier Hansson f725a69dee Let BubbleScoped find its own bucket
Then it will be easier to break things that are double nested out of
that nesting.
2025-04-05 15:44:47 +02:00

14 lines
250 B
Ruby

class Bubbles::PopsController < ApplicationController
include BubbleScoped
def create
@bubble.pop!(user: Current.user, reason: params[:reason])
redirect_to @bubble
end
def destroy
@bubble.unpop
redirect_to @bubble
end
end