Sha256: f5f8f7fe765714e17c10d1a505728c5845e35a257513d2b0c64491c3b2a9fa38
Contents?: true
Size: 722 Bytes
Versions: 47
Compression:
Stored size: 722 Bytes
Contents
# frozen_string_literal: true module Alchemy module Admin module ArchiveOverlay # Sets assignable id on given form field via JS. # # When the user saves the model the assignable # gets persisted with the model as well. # def assign @assignable_id = params[:id] @form_field_id = params[:form_field_id] end private def in_overlay? params[:form_field_id].present? end def archive_overlay @form_field_id = params[:form_field_id] respond_to do |format| format.html { render partial: "archive_overlay" } format.js { render action: "archive_overlay" } end end end end end
Version data entries
47 entries across 47 versions & 1 rubygems