mirror of https://github.com/rails/rails
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:
parent
d0c257f5da
commit
e3b239cc1a
|
@ -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.
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue