class Object
Public Instance Methods
clean_comment()
click to toggle source
# File set/all/comment.rb, line 21 def clean_comment comment.split(/\n/).map do |line| "<p>#{line.strip.empty? ? ' ' : line}</p>" end * "\n" end
comment_box()
click to toggle source
# File set/all/comment.rb, line 64 def comment_box text_area :comment, rows: 3 end
comment_signature()
click to toggle source
# File set/all/comment.rb, line 32 def comment_signature wrap_with :div, class: "w-comment-author" do "#{comment_author}.....#{Time.zone.now}" end end
comment_with_signature()
click to toggle source
# File set/all/comment.rb, line 28 def comment_with_signature "#{card.clean_comment}\n#{comment_signature}" end
commenting?()
click to toggle source
# File set/all/comment.rb, line 1 def commenting? comment && action != :delete end