From 9564a160a7950d0f908a0422e935abcec8c4fbe3 Mon Sep 17 00:00:00 2001 From: AntonioTerceiro Date: Tue, 19 Feb 2008 19:51:46 +0000 Subject: [PATCH] ActionItem170: ActionController::Base#render is now protected --- app/controllers/my_profile_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/my_profile_controller.rb b/app/controllers/my_profile_controller.rb index e2a388c..3d62eb6 100644 --- a/app/controllers/my_profile_controller.rb +++ b/app/controllers/my_profile_controller.rb @@ -15,7 +15,7 @@ class MyProfileController < ApplicationController before_filter do |controller| unless controller.send(:profile).kind_of?(some_class) controller.instance_variable_set('@message', _("This action is not available for \"%s\".") % controller.send(:profile).name) - controller.render :file => File.join(RAILS_ROOT, 'app', 'views', 'shared', 'access_denied.rhtml'), :layout => true, :status => 403 + controller.send(:render, :file => File.join(RAILS_ROOT, 'app', 'views', 'shared', 'access_denied.rhtml'), :layout => true, :status => 403) end end end -- libgit2 0.21.2