lib/tasks/sandbox_assets.rake in rails-sandbox-assets-0.1.0 vs lib/tasks/sandbox_assets.rake in rails-sandbox-assets-0.1.1
- old
+ new
@@ -1,9 +1,10 @@
namespace :sandbox_assets do
desc "Run Sandboxed Assets server"
task :serve => :environment do
app = SandboxAssets::Engine
port = app.config.sandbox_assets.port
+ app.routes.define_mounted_helper 'sandbox_assets_engine'
puts "Your assets will be soon available at http://localhost:#{port}\n\n"
Rack::Server.start app: app, Port: port
end
end