Use path for Generated?

This commit is contained in:
Arfon Smith
2015-01-08 14:03:35 -06:00
parent 7e319b797f
commit ec28ea299f
3 changed files with 16 additions and 1 deletions

View File

@@ -301,7 +301,7 @@ module Linguist
#
# Return true or false
def generated?
@_generated ||= Generated.generated?(name, lambda { data })
@_generated ||= Generated.generated?(path, lambda { data })
end
# Public: Detects the Language of the blob.