mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 17:59:47 +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
|
@ -1,3 +1,7 @@
|
|||
02.06.2015
|
||||
|
||||
* Added possibility to overwrite legal document types at application.yml level.
|
||||
|
||||
01.06.2015
|
||||
|
||||
* Added separate data update, all data migration locate at db/data, more info 'rake -T data'
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -33,6 +33,9 @@ contact_org_enabled: 'false'
|
|||
# Enable iptables counter updater
|
||||
# iptables_counter_enabled: 'true'
|
||||
|
||||
# Custom legal document types
|
||||
# legal_document_types: "pdf,bdoc,ddoc,zip,rar,gz,tar,7z,odt,doc,docx"
|
||||
|
||||
# DEPP server configuration (both for Registrar/Registrant servers)
|
||||
show_ds_data_fields: 'false'
|
||||
default_nameservers_count: '2'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue