Created
May 31, 2013 17:45
-
-
Save ehelms/5686626 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
config.assets.precompile << Proc.new do |path| | |
if path =~ /\.(css|js)\z/ | |
full_path = Rails.application.assets.resolve(path).to_path | |
app_assets_path = Rails.root.join('app', 'assets').to_path | |
if full_path.starts_with? app_assets_path || full_path.includes?('splice_reports') | |
puts "including asset: " + full_path | |
true | |
else | |
puts "excluding asset: " + full_path | |
false | |
end | |
else | |
false | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment