Sha256: e7ebcee485a5f22dda282b54f75b9362df6a41923804b2fe49276cbc8d24ad78

Contents?: true

Size: 292 Bytes

Versions: 22

Compression:

Stored size: 292 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

22 entries across 22 versions & 1 rubygems

Version Path
flipper-ui-0.17.2 lib/flipper/ui/actions/file.rb
flipper-ui-0.17.1 lib/flipper/ui/actions/file.rb
flipper-ui-0.16.2 lib/flipper/ui/actions/file.rb
flipper-ui-0.16.1 lib/flipper/ui/actions/file.rb
flipper-ui-0.16.0 lib/flipper/ui/actions/file.rb
flipper-ui-0.15.0 lib/flipper/ui/actions/file.rb
flipper-ui-0.14.0 lib/flipper/ui/actions/file.rb
flipper-ui-0.13.0 lib/flipper/ui/actions/file.rb
flipper-ui-0.13.0.beta1 lib/flipper/ui/actions/file.rb
flipper-ui-0.12.2 lib/flipper/ui/actions/file.rb
flipper-ui-0.12.1 lib/flipper/ui/actions/file.rb
flipper-ui-0.12.0 lib/flipper/ui/actions/file.rb
flipper-ui-0.11.0 lib/flipper/ui/actions/file.rb
flipper-ui-0.11.0.rc1 lib/flipper/ui/actions/file.rb
flipper-ui-0.11.0.beta9 lib/flipper/ui/actions/file.rb
flipper-ui-0.11.0.beta8 lib/flipper/ui/actions/file.rb
flipper-ui-0.11.0.beta7 lib/flipper/ui/actions/file.rb
flipper-ui-0.11.0.beta6 lib/flipper/ui/actions/file.rb
flipper-ui-0.11.0.beta5 lib/flipper/ui/actions/file.rb
flipper-ui-0.11.0.beta4 lib/flipper/ui/actions/file.rb