Class: Decidim::Toggle::UpdateOmniauthForm

Inherits:
System::BaseOrganizationForm
  • Object
show all
Includes:
InformativeCallouts
Defined in:
app/forms/decidim/toggle/update_omniauth_form.rb

Constant Summary

Constants included from InformativeCallouts

InformativeCallouts::CALLOUT_TYPES, InformativeCallouts::WRAPPER_CLASS

Instance Method Summary collapse

Methods included from InformativeCallouts

#visible_informative_callouts

Instance Method Details

#hostObject

This tab only updates a small JSONB slice (omniauth settings). The generic system form validates presence of host and users_registration_mode, so fall back to the current organization when those attributes aren't part of the tab payload.



21
22
23
# File 'app/forms/decidim/toggle/update_omniauth_form.rb', line 21

def host
  super.presence || current_organization&.host
end

#space_page_defaults_calloutObject



13
14
15
# File 'app/forms/decidim/toggle/update_omniauth_form.rb', line 13

def space_page_defaults_callout
  "For generated organization defaults, check the decidim space page"
end

#users_registration_modeObject



25
26
27
# File 'app/forms/decidim/toggle/update_omniauth_form.rb', line 25

def users_registration_mode
  super.presence || current_organization&.users_registration_mode
end