Class: Formily::PaperclipConfig
- Inherits:
-
Object
- Object
- Formily::PaperclipConfig
- Defined in:
- lib/formily/config.rb
Overview
Paperclip gem config
Instance Attribute Summary collapse
-
#path ⇒ Object
The files that are assigned as attachments are, by default, placed in the directory specified by this option.
-
#url ⇒ Object
The full URL of where the attachment is publicly accessible.
-
#use_timestamp ⇒ Object
Returns the value of attribute use_timestamp.
Instance Method Summary collapse
-
#initialize ⇒ PaperclipConfig
constructor
A new instance of PaperclipConfig.
Constructor Details
#initialize ⇒ PaperclipConfig
Returns a new instance of PaperclipConfig.
63 64 65 66 67 68 |
# File 'lib/formily/config.rb', line 63 def initialize @path = ':rails_root/public/formily_file/:id/:style_:basename.:extension' @url = '/formily_file/:id/:style_:basename.:extension' # @default_url = '' = false end |
Instance Attribute Details
#path ⇒ Object
The files that are assigned as attachments are, by default, placed in the directory specified by this option.
55 56 57 |
# File 'lib/formily/config.rb', line 55 def path @path end |
#url ⇒ Object
The full URL of where the attachment is publicly accessible.
52 53 54 |
# File 'lib/formily/config.rb', line 52 def url @url end |
#use_timestamp ⇒ Object
Returns the value of attribute use_timestamp.
61 62 63 |
# File 'lib/formily/config.rb', line 61 def end |