Sha256: a634ddec86242ee70932444774d6ba64ce23e50f5faec4c825f0248d750a591b
Contents?: true
Size: 429 Bytes
Versions: 5
Compression:
Stored size: 429 Bytes
Contents
# frozen_string_literal: true module Masks # @visibility private class DevicesController < ApplicationController require_mask type: :session, only: :update def update device = masked_session.config.find_device(masked_session, key: params[:key]) if device&.persisted? && params[:reset] device.reset_version device.save! end redirect_back_or_to "/" end end end
Version data entries
5 entries across 5 versions & 1 rubygems