app/views/entities/leads.js.haml in fat_free_crm-0.16.4 vs app/views/entities/leads.js.haml in fat_free_crm-0.17.1
- old
+ new
@@ -1,3 +1,3 @@
-- leads = entity.leads.order('updated_at DESC').paginate(:page => params[:page], :per_page => 20)
-$('#leads').html('#{ j render(:partial => 'leads/lead', :collection => leads) }');
+- leads = entity.leads.order('updated_at DESC').paginate(page: params[:page], per_page: 20)
+$('#leads').html('#{ j render(partial: 'leads/lead', collection: leads) }');
$('#leads_pagination').html('#{ j paginate(collection: leads, container: false, params: { action: 'leads' } ) }');