* Add Settings::Mascot * Add DUS * Update usage * Fix e2e test and controller * Fix specs * Fix remaining spec
18 lines
435 B
Ruby
18 lines
435 B
Ruby
module DataUpdateScripts
|
|
class MoveMascotSettings
|
|
SETTINGS = %w[
|
|
footer_image_height
|
|
footer_image_url
|
|
footer_image_width
|
|
image_description
|
|
image_url
|
|
].freeze
|
|
|
|
def run
|
|
SETTINGS.each do |setting|
|
|
Settings::Mascot.public_send("#{setting}=", SiteConfig.public_send("mascot_#{setting}"))
|
|
end
|
|
Settings::Mascot.mascot_user_id = SiteConfig.mascot_user_id
|
|
end
|
|
end
|
|
end
|