Merge pull request #365 from steel/master

Add lib/assets to sprockets asset path
This commit is contained in:
Thomas Reynolds 2012-04-18 16:38:05 -07:00
commit aa3e1a6c5a

View file

@ -16,7 +16,7 @@ module Middleman::CoreExtensions::Sprockets
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') }