Module: Ecm::Comments::ApplicationHelper

Defined in:
app/helpers/ecm/comments/application_helper.rb

Instance Method Summary collapse

Instance Method Details

#commentable(resource) ⇒ Object



4
5
6
7
# File 'app/helpers/ecm/comments/application_helper.rb', line 4

def commentable(resource)
  @comment = Ecm::Comments::Comment.new(commentable_type: resource.class, commentable_id: resource.id)
  render partial: 'ecm/comments/commentable', locals: { resource: resource }
end