lib/wasmify/rails/railtie.rb in wasmify-rails-0.1.0 vs lib/wasmify/rails/railtie.rb in wasmify-rails-0.1.1
- old
+ new
@@ -4,8 +4,14 @@
module Rails
class Railtie < ::Rails::Railtie
rake_tasks do
load "wasmify/rails/tasks.rake"
end
+
+ initializer "wasmify.rack_data_uri" do |app|
+ require "rack/data_uri_uploads"
+
+ app.middleware.use Rack::DataUriUploads
+ end
end
end
end