FIX: importing a theme via file was broken

This commit is contained in:
Arpit Jalan
2017-05-08 11:57:09 +05:30
parent cfb30bca80
commit e89d0a6b20
3 changed files with 22 additions and 1 deletions

View File

@ -17,7 +17,7 @@ class Admin::ThemesController < Admin::AdminController
@theme = Theme.new(name: theme["name"], user_id: current_user.id)
theme["theme_fields"]&.each do |field|
@theme.set_field(field["target"], field["name"], field["value"])
@theme.set_field(target: field["target"], name: field["name"], value: field["value"])
end
if @theme.save