georgia-cms/georgia

View on GitHub
lib/georgia/uploader/storage/fog.rb

Summary

Maintainability
A
20 mins
Test Coverage
require 'active_support/concern'

module Georgia
  module Uploader
    module Storage
      module Fog
        extend ActiveSupport::Concern

        included do
          include Ckeditor::Backend::CarrierWave
          require 'carrierwave/processing/mini_magick'
          include CarrierWave::MiniMagick
          storage :fog
        end

        def store_dir
          "assets/#{model.id}"
        end

      end
    end
  end
end