lib/scrivito/basic_obj.rb in scrivito_sdk-0.65.0.rc1 vs lib/scrivito/basic_obj.rb in scrivito_sdk-0.65.0.rc2

- old
+ new

@@ -498,19 +498,19 @@ def description_for_editor display_title end # - # Calculates appropriate title for an +Obj+. + # Calculates an appropriate title for an +Obj+. # # @api public # # @return [String] {Scrivito::Binary#filename} if +Obj+ is +binary+ and has a +filename+. # @return [String] {Scrivito::BasicObj#title} if +Obj+ has a non-empty +title+. - # @return [String] a placeholder +<untitled MyClass>+ otherwise. + # @return [String] falls back to +Obj.description_for_editor+. # def display_title - (binary_title || title).presence || "<untitled #{obj_class_name}>" + (binary_title || title).presence || self.class.description_for_editor end # @api public def title read_attribute('title')