lib/scrivito/basic_widget.rb in scrivito_sdk-0.65.0.rc1 vs lib/scrivito/basic_widget.rb in scrivito_sdk-0.65.0.rc2
- old
+ new
@@ -325,14 +325,18 @@
update_proc = -> { obj.widget_data_from_pool(id) }
update_data(update_proc)
end
- # This method determines the description that is shown in the widget tooltips.
- # It can be overriden by a custom value.
# @api public
+ # This method determines the description to be shown in the widget tooltips. By default,
+ # it uses the value of the +Widget.description_for_editor+ class method.
+ #
+ # This method can be overridden to customize the description displayed to the editor.
+ #
+ # @return [String] description for the editor
def description_for_editor
- obj_class_name
+ self.class.description_for_editor
end
def data_from_cms
if persisted?
super