Sha256: 495a098625b092239b8888b3b32577e3d6174e124c3c17f7f859e94e1d276f1d
Contents?: true
Size: 597 Bytes
Versions: 60
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 :amendable_form_must_be_valid validate :emendation_must_change_amendable def amendable @amendable ||= GlobalID::Locator.locate_signed(amendable_gid) end end end end
Version data entries
60 entries across 60 versions & 1 rubygems