mirror of
https://github.com/internetee/registry.git
synced 2025-07-23 19:20:37 +02:00
Added possibility to overwrite legal document types #2607
This commit is contained in:
parent
5c12362a7d
commit
83e40b402e
3 changed files with 12 additions and 1 deletions
|
@ -2,7 +2,11 @@ class LegalDocument < ActiveRecord::Base
|
|||
include Versions # version/legal_document_version.rb
|
||||
belongs_to :documentable, polymorphic: true
|
||||
|
||||
TYPES = %w(pdf bdoc ddoc zip rar gz tar 7z odt doc docx)
|
||||
if ENV['legal_document_types'].present?
|
||||
TYPES = ENV['legal_document_types'].split(',').map(&:strip)
|
||||
else
|
||||
TYPES = %w(pdf bdoc ddoc zip rar gz tar 7z odt doc docx)
|
||||
end
|
||||
|
||||
attr_accessor :body
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue