diff options
author | Xavier Noria <fxn@hashref.com> | 2012-09-17 09:43:46 +0400 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2012-09-17 17:32:18 +0200 |
commit | 4363368e857147a368be9afa4b9fcce7613564d7 (patch) | |
tree | 759ce84a6df1ddf7decadd6a72853f9a47f81189 /actionpack/lib/action_controller | |
parent | a2194990fa68ca1d1102da4fcd46e29bff34b1ae (diff) | |
download | rails-4363368e857147a368be9afa4b9fcce7613564d7.tar.gz rails-4363368e857147a368be9afa4b9fcce7613564d7.tar.bz2 rails-4363368e857147a368be9afa4b9fcce7613564d7.zip |
removes unnecessary self
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r-- | actionpack/lib/action_controller/metal.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/metal.rb b/actionpack/lib/action_controller/metal.rb index b38f990efa..2a9afccf7d 100644 --- a/actionpack/lib/action_controller/metal.rb +++ b/actionpack/lib/action_controller/metal.rb @@ -112,7 +112,7 @@ module ActionController # ==== Returns # * <tt>string</tt> def self.controller_name - @controller_name ||= self.name.demodulize.sub(/Controller$/, '').underscore + @controller_name ||= name.demodulize.sub(/Controller$/, '').underscore end # Delegates to the class' <tt>controller_name</tt> |