Revert "Make sure the cache is always populated"

This reverts commit 0ce7eae741.

Tests were broken https://travis-ci.org/rails/rails/jobs/131850726#L520
This commit is contained in:
Rafael Mendonça França 2016-05-20 23:28:00 -03:00
parent d0c257f5da
commit e3b239cc1a
No known key found for this signature in database
GPG Key ID: FC23B6D0F1EEE948
2 changed files with 2 additions and 6 deletions

View File

@ -94,11 +94,7 @@ module AbstractController
# ==== Returns
# * <tt>String</tt>
def controller_path
@controller_path ||= if anonymous?
superclass.controller_path
else
name.sub(/Controller$/, ''.freeze).underscore
end
@controller_path ||= name.sub(/Controller$/, ''.freeze).underscore unless anonymous?
end
# Refresh the cached action_methods when a new action_method is added.

View File

@ -14,7 +14,7 @@ module ActionView
attr_accessor :request, :response, :params
class << self
attr_accessor :controller_path
attr_writer :controller_path
end
def controller_path=(path)