module Attach

Constants

VERSION

Public Class Methods

asset_host() click to toggle source
# File lib/attach.rb, line 19
def self.asset_host
  @asset_host
end
asset_host=(host) click to toggle source
# File lib/attach.rb, line 23
def self.asset_host=(host)
  @asset_host = host
end
backend() click to toggle source
# File lib/attach.rb, line 8
def self.backend
  @backend ||= begin
    require 'attach/backends/database'
    Attach::Backends::Database.new
  end
end
backend=(backend) click to toggle source
# File lib/attach.rb, line 15
def self.backend=(backend)
  @backend = backend
end
use_filesystem!(config = {}) click to toggle source
# File lib/attach.rb, line 27
def self.use_filesystem!(config = {})
  require 'attach/backends/file_system'
  @backend = Attach::Backends::FileSystem.new(config)
end