Sha256: 5c0f4a1f8286a8bf4a0f3d93dff319459ce945cde0e3005f7d2ae812b4c07115

Contents?: true

Size: 443 Bytes

Versions: 2

Compression:

Stored size: 443 Bytes

Contents

require 'administrate/field/base'
require 'rails'

module Administrate
  module Field
    class Refile < Administrate::Field::Base
      class Engine < ::Rails::Engine
      end

      def to_s
        data
      end

      def direct
        options.fetch(:direct, false)
      end

      def presigned
        options.fetch(:presigned, false)
      end

      def multiple
        options.fetch(:multiple, false)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
administrate-field-refile-0.0.7 lib/administrate/field/refile.rb
administrate-field-refile-0.0.6 lib/administrate/field/refile.rb