Class: Decidim::AccountForm

Inherits:
Form
  • Object
show all
Includes:
HasUploadValidations
Defined in:
app/forms/decidim/account_form.rb

Overview

The form object that handles the data behind updating a user’s account in her profile page.

Instance Method Summary collapse

Methods included from HasUploadValidations

#attached_uploader, #maximum_avatar_size, #maximum_upload_size

Instance Method Details

#personal_urlObject



38
39
40
41
42
43
44
# File 'app/forms/decidim/account_form.rb', line 38

def personal_url
  return if super.blank?

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

  super
end