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

#maximum_avatar_size, #maximum_upload_size

Instance Method Details

#personal_urlObject



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

def personal_url
  return if super.blank?

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

  super
end