Files
nairobi/app/components/admin/legislation/draft_versions/form_component.rb
Javi Martín 0f54e220ba Move draft version form partial to a component
This way changing it will be easier.

Note we're moving the `legislation-draft-versions-form` class into the
form component itself, which is wat we usually do in components.
2025-08-07 15:24:51 +02:00

18 lines
370 B
Ruby

class Admin::Legislation::DraftVersions::FormComponent < ApplicationComponent
include TranslatableFormHelper
include GlobalizeHelper
attr_reader :draft_version, :url
use_helpers :admin_submit_action
def initialize(draft_version, url:)
@draft_version = draft_version
@url = url
end
private
def process
draft_version.process
end
end