Top Level Namespace
Defined Under Namespace
Modules: Decidim
Instance Method Summary collapse
-
#add_attribute_to_global_settings(component, attr_name, type, default = false) ⇒ Object
Extends - the Decidim::Proposals component.
Instance Method Details
#add_attribute_to_global_settings(component, attr_name, type, default = false) ⇒ Object
Extends
-
the Decidim::Proposals component.
-
the Decidim::Budgets component.
7 8 9 |
# File 'lib/decidim/verify_wo_registration/extend_components.rb', line 7 def add_attribute_to_global_settings(component, attr_name, type, default = false) component.settings(:global).attribute(attr_name.to_sym, type: type, default: default) end |