Skip to content

Commit

Permalink
provide user id for building comments
Browse files Browse the repository at this point in the history
  • Loading branch information
zflat committed Jul 6, 2012
1 parent e671422 commit a05af3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/application_controller.rb
Expand Up @@ -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
Expand Down

0 comments on commit a05af3b

Please sign in to comment.