class ElFinder2::Configuration
Attributes
default_options[RW]
document_options[RW]
document_validations[RW]
image_options[RW]
image_validations[RW]
Public Class Methods
new()
click to toggle source
# File lib/el_finder2.rb, line 26 def initialize @document_validations = { presence: true, file_type_ignorance: {} } @image_validations = { presence: true, content_type: { content_type: ElFinder2::IMAGE_MIME_REGEX } } @default_options = {} @image_options = { styles: { thumb: '100x100>' } } @document_options = {} end
Public Instance Methods
document_attachment()
click to toggle source
# File lib/el_finder2.rb, line 47 def document_attachment @default_options.merge(@document_options) end
image_attachment()
click to toggle source
# File lib/el_finder2.rb, line 43 def image_attachment @default_options.merge(@image_options) end