tracks/app/helpers/notes_helper.rb
2008-05-20 21:28:26 +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