Sha256: df0b13081f712992bfa5231e3b3cc02a89720cc01ad123fd5ef128b9a782d21e

Contents?: true

Size: 623 Bytes

Versions: 1

Compression:

Stored size: 623 Bytes

Contents

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

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)
        when :file
          include(Georgia::Uploader::Storage::File)
        else
          include(Georgia::Uploader::Storage::File)
        end
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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