Sha256: f7905eac5caa307427553c5eaf463c66f1dd4f6e573b6a4eb5464a5f97ec93b6
Contents?: true
Size: 278 Bytes
Versions: 2
Compression:
Stored size: 278 Bytes
Contents
require 'rack/file' require 'flipper/ui/action' module Flipper module UI module Actions class File < UI::Action route %r{(images|css|js)/.*\Z} def get Rack::File.new(public_path).call(request.env) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
flipper-ui-0.2.0.beta2 | lib/flipper/ui/actions/file.rb |
flipper-ui-0.2.0.beta1 | lib/flipper/ui/actions/file.rb |