Class: Decidim::Toggle::UpdateOmniauthForm
- Inherits:
-
System::BaseOrganizationForm
- Object
- System::BaseOrganizationForm
- Decidim::Toggle::UpdateOmniauthForm
- 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
-
#host ⇒ Object
This tab only updates a small JSONB slice (omniauth settings).
- #space_page_defaults_callout ⇒ Object
- #users_registration_mode ⇒ Object
Methods included from InformativeCallouts
Instance Method Details
#host ⇒ Object
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_callout ⇒ Object
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_mode ⇒ Object
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 |