Skip to content
This repository has been archived by the owner on Mar 23, 2024. It is now read-only.

Commit

Permalink
Make explicit warnings when an asset is not found
Browse files Browse the repository at this point in the history
  • Loading branch information
arlm committed Feb 22, 2013
1 parent 6cc90a5 commit 5524172
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/requirejs/rails/builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ def build
end

def digest_for(path)
Rails.application.assets.file_digest(path).hexdigest
if !Rails.application.assets.file_digest(path).nil?
Rails.application.assets.file_digest(path).hexdigest
else
puts "Asset digest not found:", path
end
end

def generate_rjs_driver
Expand All @@ -26,4 +30,4 @@ def generate_rjs_driver
end
end
end
end
end

0 comments on commit 5524172

Please sign in to comment.