class CoverLetter < ApplicationRecord belongs_to :user default_scope -> { order(order: :asc) } scope :active, -> { where.not(order: nil) } def tex_paragraph csv_paragraphs.split(";").join("\n").tex_safe end def tex_why_me why_me.tex_safe end def tex_why_company why_company.tex_safe end def tex_why_role why_role.tex_safe end end