From 4a0df7cb79baa96ca16dfee995985bc868439e55 Mon Sep 17 00:00:00 2001 From: Tadeus Dobrovolskij Date: Wed, 29 Oct 2014 20:53:48 +0100 Subject: [PATCH] Removed deprecation warnings in newer rails. --- app/controllers/rb_burndown_charts_controller.rb | 2 +- app/controllers/rb_hooks_render_controller.rb | 2 +- app/controllers/rb_server_variables_controller.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controllers/rb_burndown_charts_controller.rb b/app/controllers/rb_burndown_charts_controller.rb index b0e820489..c425a7a2a 100644 --- a/app/controllers/rb_burndown_charts_controller.rb +++ b/app/controllers/rb_burndown_charts_controller.rb @@ -11,7 +11,7 @@ def show def embedded respond_to do |format| - format.html { render :template => 'rb_burndown_charts/show.html.erb', :layout => false } + format.html { render :template => 'rb_burndown_charts/show', :layout => false, :formats => [:html], :handlers => [:erb] } end end diff --git a/app/controllers/rb_hooks_render_controller.rb b/app/controllers/rb_hooks_render_controller.rb index ed1670b75..49440bbd3 100644 --- a/app/controllers/rb_hooks_render_controller.rb +++ b/app/controllers/rb_hooks_render_controller.rb @@ -13,7 +13,7 @@ def view_issues_sidebar } respond_to do |format| - format.html { render :template => 'backlogs/view_issues_sidebar.html.erb', :layout => false, :locals => locals } + format.html { render :template => 'backlogs/view_issues_sidebar', :layout => false, :locals => locals, :formats => [:html], :handlers => [:erb] } end end diff --git a/app/controllers/rb_server_variables_controller.rb b/app/controllers/rb_server_variables_controller.rb index 2e71a810e..d45135ba0 100644 --- a/app/controllers/rb_server_variables_controller.rb +++ b/app/controllers/rb_server_variables_controller.rb @@ -9,7 +9,7 @@ def index @context = params[:context] respond_to do |format| format.html { render_404 } - format.js { render :file => 'rb_server_variables/show.js.erb', :layout => false } + format.js { render :file => 'rb_server_variables/show', :formats => [:js], :handlers => [:erb], :layout => false } end end