Class: TinySupport::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/tiny_support/config.rb

Instance Method Summary collapse

Instance Method Details

#asset_hostsObject



39
40
41
# File 'lib/tiny_support/config.rb', line 39

def asset_hosts
  @asset_hosts ||= []
end

#asset_hosts=(hosts = []) ⇒ Object



35
36
37
# File 'lib/tiny_support/config.rb', line 35

def asset_hosts= hosts=[]
  @asset_hosts ||= hosts
end

#default_upload_prefixObject



47
48
49
# File 'lib/tiny_support/config.rb', line 47

def default_upload_prefix
  @default_upload_prefix ||= "uploads"
end

#default_upload_prefix=(prefix) ⇒ Object



43
44
45
# File 'lib/tiny_support/config.rb', line 43

def default_upload_prefix= prefix
  @default_upload_prefix ||= prefix
end

#rack_upload_max_ageObject



51
52
53
# File 'lib/tiny_support/config.rb', line 51

def rack_upload_max_age
  @rack_upload_max_age ||= 3.years.to_i
end

#upload_attachment_optionsObject



29
30
31
32
33
# File 'lib/tiny_support/config.rb', line 29

def upload_attachment_options
  @upload_attachment_options ||= (
    DEFAULT_UPLOAD_ATTACHMENT_OPTIONS
  )
end

#upload_attachment_options=(options = {}) ⇒ Object



25
26
27
# File 'lib/tiny_support/config.rb', line 25

def upload_attachment_options= options={}
  @upload_attachment_options ||= DEFAULT_UPLOAD_ATTACHMENT_OPTIONS.merge(options)
end