It hosts here for convenience only.
Widget is just a specific model for interface customization. At present settings of every widget are stored in YML files. But in future they can be transparently moved to DB.
Put widget class in app/widgets.
class SupportWidget < HupoWidget::Base
singleton! # Only one widget of this type allowed
end
Create corresponding YML-file in config/widgets.
common:
vc_support_phone: 777-55-33
Now you have model object.
widget = SupportWidget.instance
widget['vc_support_phone'] # "777-55-33"
widget.as_json # {vc_support_phone: "777-55-33"}
Simple!