Sha256: 5efce20799c04b59024d86a500cd43e85d5d5ccb40def77140da04cbf0a454e4
Contents?: true
Size: 578 Bytes
Versions: 32
Compression:
Stored size: 578 Bytes
Contents
module Tenant class InlineEditController < PgEngine::TenantController before_action do if current_turbo_frame.blank? render_my_component(BadRequestComponent.new, :bad_request) else @model = GlobalID::Locator.locate params[:model] authorize(@model) end end def edit attribute = params[:attribute] render InlineEditComponent.new(@model, attribute), layout: false end def show attribute = params[:attribute] render InlineShowComponent.new(@model, attribute), layout: false end end end
Version data entries
32 entries across 32 versions & 1 rubygems