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