Class: TinySupport::Config
- Inherits:
-
Object
- Object
- TinySupport::Config
- Defined in:
- lib/tiny_support/config.rb
Instance Method Summary collapse
- #asset_hosts ⇒ Object
- #asset_hosts=(hosts = []) ⇒ Object
- #default_upload_prefix ⇒ Object
- #default_upload_prefix=(prefix) ⇒ Object
- #rack_upload_max_age ⇒ Object
- #upload_attachment_options ⇒ Object
- #upload_attachment_options=(options = {}) ⇒ Object
Instance Method Details
#asset_hosts ⇒ Object
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_prefix ⇒ Object
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_age ⇒ Object
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_options ⇒ Object
29 30 31 32 33 |
# File 'lib/tiny_support/config.rb', line 29 def @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 ||= DEFAULT_UPLOAD_ATTACHMENT_OPTIONS.merge() end |