Class: Decidim::Admin::ScopeForm

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

Overview

A form object to create or update scopes.

Instance Method Summary collapse

Methods included from TranslatableAttributes

#default_locale?

Instance Method Details

#scope_typeObject


23
24
25
# File 'decidim-admin/app/forms/decidim/admin/scope_form.rb', line 23

def scope_type
  Decidim::ScopeType.find_by(id: scope_type_id) if scope_type_id
end