Class: Decidim::InitiativesType
Overview
Class Method Summary
collapse
Instance Method Summary
collapse
#attached_uploader, #maximum_avatar_size, #maximum_upload_size
Class Method Details
.log_presenter_class_for(_log) ⇒ Object
Instance Method Details
#allow_resource_permissions? ⇒ Boolean
41
42
43
|
# File 'decidim-initiatives/app/models/decidim/initiatives_type.rb', line 41
def allow_resource_permissions?
true
end
|
#allowed_signature_types_for_initiatives ⇒ Object
35
36
37
38
39
|
# File 'decidim-initiatives/app/models/decidim/initiatives_type.rb', line 35
def allowed_signature_types_for_initiatives
return %w(online offline any) if any_signature_type?
Array(signature_type.to_s)
end
|
#mounted_admin_engine ⇒ Object
45
46
47
|
# File 'decidim-initiatives/app/models/decidim/initiatives_type.rb', line 45
def mounted_admin_engine
"decidim_admin_initiatives"
end
|
#mounted_params ⇒ Object
49
50
51
|
# File 'decidim-initiatives/app/models/decidim/initiatives_type.rb', line 49
def mounted_params
{ host: organization.host }
end
|