engine/lib/locomotive/import/site.rb
2010-09-27 00:31:50 +02:00

17 lines
359 B
Ruby

module Locomotive
module Import
module Site
def self.process(context)
site, database = context[:site], context[:database]
attributes = database['site'].clone.delete_if { |name, value| %w{pages content_types asset_collections}.include?(name) }
site.attributes = attributes
site.save!
end
end
end
end