Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Fix lookup of templates with specific formats #41

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/cache_digests/template_digestor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def source
end

def template
@template ||= finder.find(logical_name, [], partial?, formats: [ format ])
@template ||= finder.find(logical_name, [], partial?, [], formats: [ format ])
end

def dependency_digest
Expand Down
2 changes: 1 addition & 1 deletion test/template_digestor_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class FixtureFinder
FIXTURES_DIR = "#{File.dirname(__FILE__)}/fixtures"
TMP_DIR = "#{File.dirname(__FILE__)}/tmp"

def find(logical_name, keys, partial, options)
def find(logical_name, prefixes, partial, keys, options)
FixtureTemplate.new("#{TMP_DIR}/#{partial ? logical_name.gsub(%r|/([^/]+)$|, '/_\1') : logical_name}.#{options[:formats].first}.erb")
end
end
Expand Down