Module CommentsHelper
In: app/helpers/comments_helper.rb

Methods

Public Instance methods

[Source]

   # File app/helpers/comments_helper.rb, line 3
3:   def comment_column(record)
4:     record.to_label
5:   end

[Source]

   # File app/helpers/comments_helper.rb, line 7
7:   def comment_show_column(record)
8:     record.comment
9:   end

[Source]

    # File app/helpers/comments_helper.rb, line 11
11:   def commentable_column(record)
12:     commentable_type_label = I18n.t("activerecord.models.#{record.commentable_type.singularize.downcase}")
13:     label = "[#{commentable_type_label}] #{h(record.commentable.to_label)}"
14:     link_to(h(label), :action => :show, :controller => record.commentable_type.pluralize, :id => record.commentable_id)
15:   end

[Validate]