lib/scrivito/basic_obj.rb in scrivito_sdk-0.40.0 vs lib/scrivito/basic_obj.rb in scrivito_sdk-0.41.0.rc1

- old
+ new

@@ -710,13 +710,17 @@ def inspect "<#{self.class} id=\"#{id}\" path=\"#{path}\">" end def details_view_path - "#{obj_class_name.underscore}/details" + view_path('details') end + def embed_view_path + view_path('embed') + end + def widget_from_pool(widget_id) widget_data = widget_data_from_pool(widget_id) instantiate_widget(widget_id, widget_data) if widget_data end @@ -928,9 +932,13 @@ end end def binary_title binary.filename if binary? && binary + end + + def view_path(view_name) + "#{obj_class_name.underscore}/#{view_name}" end class << self def assert_not_basic_obj(method_name)