Sha256: 533fcaa9dbe5ca0d1f6c00f9cd1b37c7bdd983a7e537b1e4867b77ad887a717d

Contents?: true

Size: 293 Bytes

Versions: 20

Compression:

Stored size: 293 Bytes

Contents

require 'rack/file'
require 'flipper/ui/action'

module Flipper
  module UI
    module Actions
      class File < UI::Action

        route %r{(images|css|js|octicons|fonts)/.*\Z}

        def get
          Rack::File.new(public_path).call(request.env)
        end
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
flipper-ui-0.10.2 lib/flipper/ui/actions/file.rb
flipper-ui-0.10.1 lib/flipper/ui/actions/file.rb
flipper-ui-0.10.0 lib/flipper/ui/actions/file.rb
flipper-ui-0.9.2 lib/flipper/ui/actions/file.rb
flipper-ui-0.9.1 lib/flipper/ui/actions/file.rb
flipper-ui-0.9.0 lib/flipper/ui/actions/file.rb
flipper-ui-0.9.0.beta1 lib/flipper/ui/actions/file.rb
flipper-ui-0.8.0 lib/flipper/ui/actions/file.rb
flipper-ui-0.7.5 lib/flipper/ui/actions/file.rb
flipper-ui-0.7.4 lib/flipper/ui/actions/file.rb
flipper-ui-0.7.3 lib/flipper/ui/actions/file.rb
flipper-ui-0.7.2 lib/flipper/ui/actions/file.rb
flipper-ui-0.7.1 lib/flipper/ui/actions/file.rb
flipper-ui-0.7.0 lib/flipper/ui/actions/file.rb
flipper-ui-0.7.0.beta6 lib/flipper/ui/actions/file.rb
flipper-ui-0.7.0.beta5 lib/flipper/ui/actions/file.rb
flipper-ui-0.7.0.beta4 lib/flipper/ui/actions/file.rb
flipper-ui-0.2.0.beta5 lib/flipper/ui/actions/file.rb
flipper-ui-0.2.0.beta4 lib/flipper/ui/actions/file.rb
flipper-ui-0.2.0.beta3 lib/flipper/ui/actions/file.rb