Sha256: e26af565abf108a133d01615acfe1a3b58bb6de618b3c916474771f63f204654
Contents?: true
Size: 333 Bytes
Versions: 1
Compression:
Stored size: 333 Bytes
Contents
class InlineShowComponent < ViewComponent::Base def initialize(model, attribute) @model = model @attribute = attribute @frame_id = dom_id(model, "#{attribute}_inline_edit") super end def before_render return unless controller.in_modal? controller.instance_variable_set(:@using_modal, true) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pg_rails-7.6.3 | pg_engine/app/components/inline_edit/inline_show_component.rb |