Sha256: 6110b547a9b9a52a53ab3cd9e59eeefaa1ca2cf4cd2079032db2fd8a23c5c732

Contents?: true

Size: 420 Bytes

Versions: 6

Compression:

Stored size: 420 Bytes

Contents

module Puffer
  class PathSet < ::ActionView::PathSet

    def find(path, prefix = nil, partial = false, details = {}, key = nil)
      begin
        super(path, prefix, partial, details, key)
      rescue ::ActionView::MissingTemplate => e
        begin
          super(path, 'puffer', partial, details, key)
        rescue ::ActionView::MissingTemplate => ee
          raise e
        end
      end
    end

  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
puffer-0.0.11 lib/puffer/path_set.rb
puffer-0.0.10 lib/puffer/path_set.rb
puffer-0.0.9 lib/puffer/path_set.rb
puffer-0.0.8 lib/puffer/path_set.rb
puffer-0.0.7 lib/puffer/path_set.rb
puffer-0.0.6 lib/puffer/path_set.rb