Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add lib/asset to sprocket load path

  • Loading branch information...
commit a85678f040c86601331369c11bb6b041538d8946 1 parent 129c284
@steel steel authored
View
2  middleman-more/lib/middleman-more/core_extensions/sprockets.rb
@@ -16,7 +16,7 @@ def registered(app)
app.ready do
# Add any gems with (vendor|app|.)/assets/javascripts to paths
# also add similar directories from project root (like in rails)
- root_paths = [%w{ app }, %w{ assets }, %w{ vendor }, %w{ app assets }, %w{ vendor assets }]
+ root_paths = [%w{ app }, %w{ assets }, %w{ vendor }, %w{ app assets }, %w{ vendor assets }, %w{ lib }, %w{ lib assets }]
try_paths = root_paths.map {|rp| File.join(rp, 'javascripts') } +
root_paths.map {|rp| File.join(rp, 'stylesheets') }
Please sign in to comment.
Something went wrong with that request. Please try again.