Add followable specific notices to follows controller actions and render notice on AJAX JS response.

This commit is contained in:
Senén Rodero Rodríguez
2017-07-19 19:43:05 +02:00
parent 3b1335062f
commit dec7d2d2b5
6 changed files with 63 additions and 5 deletions

View File

@@ -1,2 +1,3 @@
App.Followable.update("<%= dom_id(@follow.followable) %>",
"<%= j render('follow_button', follow: @follow) %>")
"<%= j render('follow_button', follow: @follow) %>",
"<%= j render('layouts/flash') %>")