Class: Decidim::Admin::ScopeForm

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

Overview

A form object to create or update scopes.

Instance Method Summary collapse

Instance Method Details

#scope_typeObject



23
24
25
# File '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