Class: Decidim::Conferences::Admin::MediaLinkForm

Inherits:
Form
  • Object
show all
Includes:
TranslatableAttributes
Defined in:
decidim-conferences/app/forms/decidim/conferences/admin/media_link_form.rb

Overview

A form object used to create conference media link from the admin dashboard.

Instance Method Summary collapse

Methods included from TranslatableAttributes

#default_locale?

Instance Method Details


21
22
23
24
25
26
27
# File 'decidim-conferences/app/forms/decidim/conferences/admin/media_link_form.rb', line 21

def link
  return if super.blank?

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

  super
end