lib/sprockets/helpers/file_path.rb in sprockets-helpers-1.3.0 vs lib/sprockets/helpers/file_path.rb in sprockets-helpers-1.4.0
- old
+ new
@@ -23,10 +23,10 @@
end
# Returns the mtime for the given path (relative to
# the output path). Returns nil if the file doesn't exist.
def compute_mtime # :nodoc:
- public_path = File.join(Helpers.public_path, uri.path)
+ public_path = File.join(sprockets_helpers_settings.public_path, uri.path)
if File.exist?(public_path)
File.mtime(public_path)
else
nil