Administrateur can be select dynamically the activation of api carto modules

This commit is contained in:
Xavier J 2015-12-08 10:11:58 +01:00
parent 8130e7d155
commit 0e3bec7f9f
17 changed files with 186 additions and 25 deletions

View file

@ -1,7 +1,7 @@
class ModuleAPICarto < ActiveRecord::Base
enum name: {'quartiers_prioritaires' => 'quartiers_prioritaires'}
belongs_to :procedure
validates :name, presence: true, allow_blank: false, allow_nil: false
validates :use_api_carto, presence: true, allow_blank: true, allow_nil: false
validates :quartiers_prioritaires, presence: true, allow_blank: true, allow_nil: false
validates :cadastre, presence: true, allow_blank: true, allow_nil: false
end