fix several deprecation warnings

truncate wants explicit :length => number and :omission
calling a partial from a js requires to explicitly pass the variable i.e. :todo => @todo instead of rails doing it implicitly
This commit is contained in:
Reinier Balt 2008-11-30 20:16:57 +01:00
parent 6da4282558
commit 198f3240b8
10 changed files with 27 additions and 27 deletions

View file

@ -1,5 +1,5 @@
module NotesHelper
def truncated_note(note, characters = 50)
sanitize(textilize_without_paragraph(truncate(note.body, characters, "...")))
sanitize(textilize_without_paragraph(truncate(note.body, :length => characters, :omission => "...")))
end
end