You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
373 B
22 lines
373 B
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
|
|
|