engine/lib/locomotive/import/site.rb

17 lines
366 B
Ruby
Raw Normal View History

module Locomotive
module Import
module Site
2010-09-23 23:00:13 +00:00
def self.process(context)
site, database = context[:site], context[:database]
2010-10-10 14:37:34 +00:00
attributes = database['site'].clone.delete_if { |name, value| %w{pages assets content_types asset_collections}.include?(name) }
site.attributes = attributes
site.save!
end
end
end
end