Created
April 10, 2016 17:27
-
-
Save alexdesi/65b954b97971804aa53809c91b791f6f to your computer and use it in GitHub Desktop.
List all the files included in the Rails assets
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
# 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} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Rails.application.assets
returnnil
in production