Sha256: 09a084b009d64215a71b65fdb5213b5f6f80d8acaf654f8538da4c690ecf7c19
Contents?: true
Size: 363 Bytes
Versions: 33
Compression:
Stored size: 363 Bytes
Contents
module ActionController #:nodoc: module Layout #:nodoc: def find_layout(layout, format, html_fallback=false) #:nodoc: view_paths.find_template(layout.to_s =~ /\A\/|layouts\// ? layout : "layouts/#{layout}", format, html_fallback) rescue ActionView::MissingTemplate raise if Mime::Type.lookup_by_extension(format.to_s).html? end end end
Version data entries
33 entries across 33 versions & 1 rubygems