Sha256: 1abd78661995990bc23cccb3df7bc13e30f299eb1c87be976c90baea0bcd0bdd

Contents?: true

Size: 540 Bytes

Versions: 2

Compression:

Stored size: 540 Bytes

Contents

module Spud
  module Media
    include ActiveSupport::Configurable
    require 'active_support/core_ext/numeric/bytes'
    config_accessor :paperclip_storage, :s3_credentials, :storage_path, :storage_url, :max_upload_size
    self.paperclip_storage = :filesystem
    self.s3_credentials = "#{Rails.root}/config/s3.yml"
    self.storage_path = ':rails_root/public/system/spud_media/:id/:style/:basename.:extension'
    self.storage_url = '/system/spud_media/:id/:style/:basename.:extension'
    self.max_upload_size = 15.megabytes
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tb_media-1.3.2 lib/spud_media/configuration.rb
tb_media-1.3.1 lib/spud_media/configuration.rb