From 4363368e857147a368be9afa4b9fcce7613564d7 Mon Sep 17 00:00:00 2001 From: Xavier Noria Date: Mon, 17 Sep 2012 09:43:46 +0400 Subject: [PATCH] removes unnecessary self --- actionpack/lib/action_controller/metal.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actionpack/lib/action_controller/metal.rb b/actionpack/lib/action_controller/metal.rb index b38f990efaf..2a9afccf7dd 100644 --- a/actionpack/lib/action_controller/metal.rb +++ b/actionpack/lib/action_controller/metal.rb @@ -112,7 +112,7 @@ module ActionController # ==== Returns # * string def self.controller_name - @controller_name ||= self.name.demodulize.sub(/Controller$/, '').underscore + @controller_name ||= name.demodulize.sub(/Controller$/, '').underscore end # Delegates to the class' controller_name