d57ba8ad44
- create controller concern commentable_form to use "prepare_commentable_for" - implement it in each controller - implement form to clients/show
9 lines
140 B
Ruby
9 lines
140 B
Ruby
module CommentableForm
|
|
|
|
def prepare_comment_for(commentable)
|
|
@comment = Comment.new
|
|
@comment.commentable = commentable
|
|
end
|
|
|
|
end
|