f725a69dee
Then it will be easier to break things that are double nested out of that nesting.
14 lines
250 B
Ruby
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
|