Skip to content

Instantly share code, notes, and snippets.

@textgoeshere
Created October 8, 2013 13:36
Show Gist options
  • Save textgoeshere/6884785 to your computer and use it in GitHub Desktop.
Save textgoeshere/6884785 to your computer and use it in GitHub Desktop.
config.assets.precompile << Proc.new do |path|
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
if full_path =~ /\.(css|js)\./
puts "\e[0;32m✓ #{full_path}\e[0m"
true
else
puts "\e[1;30m✗ #{full_path}\e[0m"
false
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment