tracks/app/helpers/notes_helper.rb
2008-05-24 15:57:18 +01:00

5 lines
155 B
Ruby

module NotesHelper
def truncated_note(note, characters = 50)
sanitize(textilize_without_paragraph(truncate(note.body, characters, "...")))
end
end