app/views/campaigns/destroy.js.haml in fat_free_crm-0.16.4 vs app/views/campaigns/destroy.js.haml in fat_free_crm-0.17.1
- old
+ new
@@ -1,6 +1,6 @@
- entity_name = controller.controller_name.singularize.underscore
- @entity = instance_variable_get("@#{entity_name}")
$('##{dom_id(@entity)}').css('background-color', '#ffe4e1').slideUp(250)
= refresh_sidebar(:index, :filters)
-$('#paginate').replaceWith('#{ j render(:partial => "shared/paginate_with_per_page") }');
+$('#paginate').replaceWith('#{ j render(partial: "shared/paginate_with_per_page") }');