fix regression and refactor todos/update.js a bit

This commit is contained in:
Reinier Balt 2014-08-10 15:57:37 +02:00
parent 4cdbd9a451
commit 8a3cb66e49
8 changed files with 332 additions and 334 deletions

View file

@ -242,4 +242,8 @@ module ApplicationHelper
"#{name}_#{SecureRandom.hex(5)}"
end
def js_render(object, locals = {})
escape_javascript(render(partial: object, locals: locals))
end
end