blob: 4756fae02df2d92d021bd563019eb29028b71ca6 (
plain)
1
2
3
4
5
6
7
8
9
10
|
class RemoveCakeCommand
def initialize(context, current_user = context.current_user)
@context = context
@current_user = current_user
end
def run(creation_id)
@current_user.creations.find(creation_id).destroy
end
end
|