Permalink
Browse files

Make a "sprockets_prefix" setting

  • Loading branch information...
1 parent 0295474 commit b95d5a0fc53714848931a99ca488ad94926cee20 @6 committed Feb 26, 2013
Showing with 2 additions and 1 deletion.
  1. +1 −1 config.ru
  2. +1 −0 server/application.rb
View
@@ -1,7 +1,7 @@
require './server/application'
if App.settings.respond_to?(:sprockets)
- map '/assets' do
+ map App.settings.sprockets_prefix do
run App.settings.sprockets
end
end
View
@@ -46,6 +46,7 @@ class App < Sinatra::Base
set :dump_errors, true
set :show_exceptions, true
set :sprockets, SprocketsEnvironmentBuilder.build(ENV['RACK_ENV'])
+ set :sprockets_prefix, '/assets'
end
configure :production do

0 comments on commit b95d5a0

Please sign in to comment.