Skip to content

Instantly share code, notes, and snippets.

@ehelms
Created May 31, 2013 17:45
Show Gist options
  • Save ehelms/5686626 to your computer and use it in GitHub Desktop.
Save ehelms/5686626 to your computer and use it in GitHub Desktop.
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