lib/pakyow-assets.rb in pakyow-assets-0.1.0 vs lib/pakyow-assets.rb in pakyow-assets-0.1.1

- old
+ new

@@ -22,8 +22,10 @@ Pakyow::Assets.precompile Pakyow.logger.debug 'Finished precompiling!' end end -Pakyow::App.middleware do |builder| +# make sure this middleware executes first +# FIXME: need an api for this on Pakyow::App +Pakyow::App.class_variable_get(:@@middleware).unshift(lambda { |builder| builder.use Pakyow::Assets::Middleware -end +})