app/controllers/plugins/ecommerce/admin/settings_controller.rb in camaleon_ecommerce-1.2.1 vs app/controllers/plugins/ecommerce/admin/settings_controller.rb in camaleon_ecommerce-2.0.0
- old
+ new
@@ -1,13 +1,13 @@
class Plugins::Ecommerce::Admin::SettingsController < Plugins::Ecommerce::AdminController
add_breadcrumb I18n.t("plugins.ecommerce.e_commerce")
def index
- @setting = current_site.get_meta("_setting_ecommerce", {})
+ @setting = current_site.e_settings
end
# save settings
def saved
- current_site.set_meta('_setting_ecommerce', params[:setting])
+ current_site.e_settings(params[:setting])
flash[:notice] = t('camaleon_cms.admin.post_type.message.updated')
redirect_to action: :index
end
end