lib/octopress-ink/assets/asset.rb in octopress-ink-1.0.0.rc.53 vs lib/octopress-ink/assets/asset.rb in octopress-ink-1.0.0.rc.54

- old
+ new

@@ -56,21 +56,20 @@ config = @plugin.config['disable'] config.include?(base) || config.include?(File.join(base, filename)) end def path - if @found_file - @found_file - else + @path ||= begin files = [] files << user_path files << plugin_path files = files.flatten.reject { |f| !exists? f } if files.empty? raise IOError.new "Could not find #{File.basename(file)} at #{file}" end - @found_file = files[0] + + files[0] end end def ext File.extname(filename)