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