Sha256: 31fc07da84cd5cc7195a844113de6dc5b78cbaeade863bdd81cf9bd836241d85

Contents?: true

Size: 511 Bytes

Versions: 1

Compression:

Stored size: 511 Bytes

Contents

require 'active_support/concern'
require 'georgia/uploader/storage/cloudinary'
require 'georgia/uploader/storage/fog'

module Georgia
  module Uploader
    module Adapter
      extend ActiveSupport::Concern

      included do
        case Georgia.storage
        when :cloudinary
          include(Georgia::Uploader::Storage::Cloudinary)
        when :fog
          include(Georgia::Uploader::Storage::Fog)
        else
          include(Georgia::Uploader::Storage::Fog)
        end
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
georgia-0.7.8 lib/georgia/uploader/adapter.rb