blob: 7fb93a0eb573c48351bc772cafcdde70f02728b2 (
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
      _find_layout(_layout({}), {})
      nil
    end
  end
end
 |