Sha256: 3fd0cdfafd260cb9051eb0b3a93a31880135c9fb31e3fa494ed44cdf812327e5
Contents?: true
Size: 459 Bytes
Versions: 20
Compression:
Stored size: 459 Bytes
Contents
require 'flipper/ui/action' require 'flipper/ui/util' module Flipper module UI module Actions class Export < UI::Action route %r{\A/settings\/export/?\Z} def post header 'Content-Disposition', "Attachment;filename=flipper_#{flipper.adapter.adapter.name}_#{Time.now.to_i}.json" export = flipper.export(format: :json, version: 1) json_response export.contents end end end end end
Version data entries
20 entries across 20 versions & 1 rubygems