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

Inherits:
Form
  • Object
show all
Includes:
HasUploadValidations, TranslatableAttributes
Defined in:
decidim-participatory_processes/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

Methods included from HasUploadValidations

#maximum_avatar_size, #maximum_upload_size

Methods included from TranslatableAttributes

#default_locale?

Instance Method Details

#group_urlObject


41
42
43
44
45
46
47
# File 'decidim-participatory_processes/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