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.0.0.beta2 lib/zena/fix_rails_layouts.rb
zena-1.0.0.beta1 lib/zena/fix_rails_layouts.rb
zena-0.16.7 lib/zena/fix_rails_layouts.rb
zena-0.16.6 lib/zena/fix_rails_layouts.rb
zena-0.16.5 lib/zena/fix_rails_layouts.rb
zena-0.16.4 lib/zena/fix_rails_layouts.rb
zena-0.16.3 lib/fix_rails_layouts.rb
zena-0.16.2 lib/fix_rails_layouts.rb
zena-0.16.1 lib/fix_rails_layouts.rb
zena-0.16.0 lib/fix_rails_layouts.rb
zena-0.15.2 lib/fix_rails_layouts.rb
zena-0.15.1 lib/fix_rails_layouts.rb
zena-0.15.0 lib/fix_rails_layouts.rb