summaryrefslogtreecommitdiff
path: root/app/services
diff options
context:
space:
mode:
authormo k <mo@mokhan.ca>2012-09-27 20:52:04 -0600
committermo k <mo@mokhan.ca>2012-09-27 20:52:04 -0600
commit868cdfb3136d2eceabbd5cd1bb444bd5aa32b09a (patch)
tree9e4c4af15ccd250e3c223525e17bc396874d6572 /app/services
parent98db5dfbe7a8ae4d44c90e34e4ebef75f2d75efa (diff)
update the comments controller specs
Diffstat (limited to 'app/services')
-rw-r--r--app/services/comment_on_creation_command.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/services/comment_on_creation_command.rb b/app/services/comment_on_creation_command.rb
index 3217dcbd..4fc765b5 100644
--- a/app/services/comment_on_creation_command.rb
+++ b/app/services/comment_on_creation_command.rb
@@ -5,5 +5,6 @@ class CommentOnCreationCommand
def run(params)
comment = @current_user.comment_on(Creation.find(params[:creation_id]), params[:comment][:body])
comment.save
+ comment
end
end