mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 15:20:13 +01:00
fix regression and refactor todos/update.js a bit
This commit is contained in:
parent
4cdbd9a451
commit
8a3cb66e49
8 changed files with 332 additions and 334 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue