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

Version Path
zena-1.2.8 lib/zena/fix_rails_layouts.rb
zena-1.2.7 lib/zena/fix_rails_layouts.rb
zena-1.2.6 lib/zena/fix_rails_layouts.rb
zena-1.2.5 lib/zena/fix_rails_layouts.rb
zena-1.2.4 lib/zena/fix_rails_layouts.rb
zena-1.2.3 lib/zena/fix_rails_layouts.rb
zena-1.2.2 lib/zena/fix_rails_layouts.rb
zena-1.2.1 lib/zena/fix_rails_layouts.rb
zena-1.2.0 lib/zena/fix_rails_layouts.rb
zena-1.1.3 lib/zena/fix_rails_layouts.rb
zena-1.1.2 lib/zena/fix_rails_layouts.rb
zena-1.1.1 lib/zena/fix_rails_layouts.rb
zena-1.1.0 lib/zena/fix_rails_layouts.rb
zena-1.0.0 lib/zena/fix_rails_layouts.rb
zena-1.0.0.rc3 lib/zena/fix_rails_layouts.rb
zena-1.0.0.rc2 lib/zena/fix_rails_layouts.rb
zena-1.0.0.rc1 lib/zena/fix_rails_layouts.rb
zena-0.16.9 lib/zena/fix_rails_layouts.rb
zena-1.0.0.beta3 lib/zena/fix_rails_layouts.rb
zena-0.16.8 lib/zena/fix_rails_layouts.rb