Only remote id on import mode.

This commit is contained in:
Martin Edenhofer 2013-02-20 09:50:43 +01:00
parent 73cebf8e4a
commit 4ad897ce9b

View file

@ -9,7 +9,11 @@ class ApplicationModel < ActiveRecord::Base
# for import other objects, remove 'id' # for import other objects, remove 'id'
def self.attributes_protected_by_default def self.attributes_protected_by_default
if Setting.get('import_mode')
['type'] ['type']
else
['id','type']
end
end end
def self.param_cleanup(params) def self.param_cleanup(params)