lib/sprockets/source_file.rb in sstephenson-sprockets-0.1.1 vs lib/sprockets/source_file.rb in sstephenson-sprockets-0.3.0
- old
+ new
@@ -20,7 +20,13 @@
end
def ==(source_file)
pathname == source_file.pathname
end
+
+ def mtime
+ File.mtime(pathname.absolute_location)
+ rescue Errno::ENOENT
+ 0
+ end
end
end