Class: Decidim::ParticipatoryProcesses::Admin::ParticipatoryProcessGroupForm

Inherits:
Form
  • Object
show all
Includes:
HasUploadValidations, TranslatableAttributes
Defined in:
app/forms/decidim/participatory_processes/admin/participatory_process_group_form.rb

Overview

A form object used to create participatory process groups from the admin dashboard.

Instance Method Summary collapse

Instance Method Details

#group_urlObject



41
42
43
44
45
46
47
# File 'app/forms/decidim/participatory_processes/admin/participatory_process_group_form.rb', line 41

def group_url
  return if super.blank?

  return "http://#{super.strip}" unless super.match?(%r{\A(http|https)://}i)

  super.strip
end