Commit 9564a160a7950d0f908a0422e935abcec8c4fbe3

Authored by AntonioTerceiro
1 parent cf704b6b

ActionItem170: ActionController::Base#render is now protected


git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1449 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/controllers/my_profile_controller.rb
... ... @@ -15,7 +15,7 @@ class MyProfileController < ApplicationController
15 15 before_filter do |controller|
16 16 unless controller.send(:profile).kind_of?(some_class)
17 17 controller.instance_variable_set('@message', _("This action is not available for \"%s\".") % controller.send(:profile).name)
18   - controller.render :file => File.join(RAILS_ROOT, 'app', 'views', 'shared', 'access_denied.rhtml'), :layout => true, :status => 403
  18 + controller.send(:render, :file => File.join(RAILS_ROOT, 'app', 'views', 'shared', 'access_denied.rhtml'), :layout => true, :status => 403)
19 19 end
20 20 end
21 21 end
... ...