mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 09:57:23 +02:00
8 lines
250 B
Ruby
8 lines
250 B
Ruby
module FormHelper
|
|
def legal_document_field(object_name, method, options = {})
|
|
options[:data] = { legal_document: true }
|
|
options[:accept] = legal_document_types unless options[:accept]
|
|
|
|
file_field(object_name, method, options)
|
|
end
|
|
end
|