Sha256: d3ed06eb3de795b96a9cd8a29a422f407f10600b33d9e581f50f0d247c55f6c1
Contents?: true
Size: 1.35 KB
Versions: 4
Compression:
Stored size: 1.35 KB
Contents
require 'open3' require 'attachs/attachment' require 'attachs/processors/base' require 'attachs/processors/thumbnail' require 'attachs/storages/base' require 'attachs/storages/local' require 'attachs/storages/s3' require 'attachs/types/base' require 'attachs/types/default' require 'attachs/types/regular' require 'attachs/active_record/base' require 'attachs/active_record/connection_adapters' require 'attachs/active_record/migration' require 'attachs/active_record/validators' require 'attachs/active_record/validators/attachment_content_type_validator' require 'attachs/active_record/validators/attachment_presence_validator' require 'attachs/active_record/validators/attachment_size_validator' require 'attachs/railtie' module Attachs class << self def configure yield config end def config @config ||= begin ActiveSupport::OrderedOptions.new.tap do |config| config.s3 = { ssl: false } config.base_url = '' config.styles = {} config.cachebuster = true config.interpolations = {} config.convert_options = {} config.global_styles = [] config.global_convert_options= '' config.default_storage = :local config.default_processors = [:thumbnail] config.default_path = '/:timestamp-:filename' end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
attachs-0.4.5 | lib/attachs.rb |
attachs-0.4.4 | lib/attachs.rb |
attachs-0.4.3 | lib/attachs.rb |
attachs-0.4.2 | lib/attachs.rb |