Sha256: 927dd8d55d65f36f88689d04354ba28b5b9494d43cca59b1885488d91a33d4c0

Contents?: true

Size: 417 Bytes

Versions: 9

Compression:

Stored size: 417 Bytes

Contents

# frozen_string_literal: true

module Lcms
  module Engine
    module Admin
      class SettingsController < AdminController
        def toggle_editing_enabled
          Settings[:editing_enabled] = !Settings[:editing_enabled]
          notice = Settings[:editing_enabled] ? t('.enabled') : t('.disabled')
          redirect_to lcms_engine.admin_resources_path, notice: notice
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
lcms-engine-0.5.5 app/controllers/lcms/engine/admin/settings_controller.rb
lcms-engine-0.5.4 app/controllers/lcms/engine/admin/settings_controller.rb
lcms-engine-0.5.3 app/controllers/lcms/engine/admin/settings_controller.rb
lcms-engine-0.5.2 app/controllers/lcms/engine/admin/settings_controller.rb
lcms-engine-0.5.1 app/controllers/lcms/engine/admin/settings_controller.rb
lcms-engine-0.5.0 app/controllers/lcms/engine/admin/settings_controller.rb
lcms-engine-0.4.2 app/controllers/lcms/engine/admin/settings_controller.rb
lcms-engine-0.4.1 app/controllers/lcms/engine/admin/settings_controller.rb
lcms-engine-0.4.0 app/controllers/lcms/engine/admin/settings_controller.rb