lib/scrivito/widget_collection.rb in scrivito_sdk-1.1.1 vs lib/scrivito/widget_collection.rb in scrivito_sdk-1.2.0.rc1

- old
+ new

@@ -25,10 +25,10 @@ # @yield [Scrivito::BasicWidget] the {Scrivito::BasicWidget Widgets} of an {Scrivito::BasicObj Obj} # # @example Array of all widget ids # obj.widgets.map { |widget| widget.id } def each(&block) - obj.all_widgets_from_pool.each(&block) + obj.contained_widgets.each(&block) end private attr_reader :obj