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'
def self.attributes_protected_by_default
['type']
if Setting.get('import_mode')
['type']
else
['id','type']
end
end
def self.param_cleanup(params)