Skip to content

Instantly share code, notes, and snippets.

@alexdesi
Created April 10, 2016 17:27
Show Gist options
  • Save alexdesi/65b954b97971804aa53809c91b791f6f to your computer and use it in GitHub Desktop.
Save alexdesi/65b954b97971804aa53809c91b791f6f to your computer and use it in GitHub Desktop.
List all the files included in the Rails assets
# Found in http://stackoverflow.com/questions/10994396/sprockets-rails-find-all-files-sprockets-knows-how-to-compile
Rails.application.assets.each_file { |pathname| puts pathname}
@amitpatelx
Copy link

Rails.application.assets return nil in production

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment