Sha256: f6590c7939a620354cc31f616ac4b223cd3520861b15ee6cb7507f74538e3fe2
Contents?: true
Size: 597 Bytes
Versions: 6
Compression:
Stored size: 597 Bytes
Contents
# frozen_string_literal: true module Decidim module Amendable # A form object to be used when users want to amend an amendable resource. class CreateForm < Decidim::Amendable::Form mimic :amendment attribute :amendable_gid, String attribute :user_group_id, Integer attribute :emendation_params, Hash validates :amendable_gid, presence: true validate :emendation_must_change_amendable validate :amendable_form_must_be_valid def amendable @amendable ||= GlobalID::Locator.locate_signed(amendable_gid) end end end end
Version data entries
6 entries across 6 versions & 1 rubygems