mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
19 lines
421 B
Ruby
19 lines
421 B
Ruby
module AbstractController
|
|
module Compatibility
|
|
extend ActiveSupport::Concern
|
|
|
|
def _find_layout(name, details)
|
|
details[:prefix] = nil if name =~ /\blayouts/
|
|
super
|
|
end
|
|
|
|
# Move this into a "don't run in production" module
|
|
def _default_layout(details, require_layout = false)
|
|
super
|
|
rescue ActionView::MissingTemplate
|
|
_find_layout(_layout({}), {})
|
|
nil
|
|
end
|
|
end
|
|
end
|