lib/ustyle/middleware/icon_middleware.rb in reustyle-2.0.9 vs lib/ustyle/middleware/icon_middleware.rb in reustyle-2.0.10

- old
+ new

@@ -1,14 +1,14 @@ require 'uri' require 'net/http' require 'ustyle/utils' -module Ustyle +module Reustyle class IconMiddleware def initialize(app, options = {}) @app = app - @icon_path = options[:path] || Ustyle.cloudfront_url("icons.svg", :icon, false, false) + @icon_path = options[:path] || Reustyle.cloudfront_url("icons.svg", :icon, false, false) end def call(env) request = Rack::Request.new(env) if request.path == "/icons.svg" @@ -22,6 +22,6 @@ uri = URI(@icon_path) res = Net::HTTP.get_response(uri) res.body end end -end \ No newline at end of file +end