Sha256: 3eea22903b185e3a096859e4deff9dbabdc6b626c73195ef667d0558115a64ee
Contents?: true
Size: 595 Bytes
Versions: 18
Compression:
Stored size: 595 Bytes
Contents
module Users class InlineEditController < PgEngine.config.users_controller before_action do if current_turbo_frame.blank? render_my_component(BadRequestComponent.new, :bad_request) end end def edit model = GlobalID::Locator.locate params[:model] attribute = params[:attribute] render InlineEditComponent.new(model, attribute), layout: false end def show model = GlobalID::Locator.locate params[:model] attribute = params[:attribute] render InlineShowComponent.new(model, attribute), layout: false end end end
Version data entries
18 entries across 18 versions & 1 rubygems