blob: 85fb1364b7e676e5c82a696f8d4a9458a27a60f2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
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
_layout_for_name(_layout({}), {})
nil
end
end
end
|