Permalink
Browse files

provide user id for building comments

  • Loading branch information...
1 parent e671422 commit a05af3b433935e66878c061c85ae4349d773c394 @zflat zflat committed Jul 6, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/controllers/application_controller.rb
@@ -66,7 +66,7 @@ class ApplicationController < ActionController::Base
# * Build from commentable if commentable is fetched
# ** Assumes calling controller exposes commentable
expose(:comment) do
- @c_ret ||= (Comment.build_from(commentable, current_user, comment_body) if commentable)
+ @c_ret ||= (Comment.build_from(commentable, current_user.id, comment_body) if commentable)
end
def new_comment

0 comments on commit a05af3b

Please sign in to comment.