app/cms/scrivito/attribute_content.rb in scrivito_sdk-1.12.0 vs app/cms/scrivito/attribute_content.rb in scrivito_sdk-1.13.0.rc1

- old
+ new

@@ -485,10 +485,10 @@ # The first parameter is an +ActiveSupport::HashWithIndifferentAccess+ containing the attributes # that were passed to {Scrivito::BasicObj.create Obj.create} or # {Scrivito::BasicWidget.new Widget.new}. # # The second parameter, +context+, is a hash. If the +default_for+ callback is triggered by a UI - # user creating a CMS object or a Widget, Scrivito places the {Scrivito::User +:current_user+} + # user creating a CMS object or a Widget, Scrivito places the {Scrivito::User +:scrivito_user+} # and the {Scrivito::BasicObj +:current_page+} (originating from the UI calling the creation # method) into this hash. +:current_page+ won't be present in the +context+ if the user creates # the object or widget while viewing a page which isn't a CMS object. The +context+ hash is # empty if the object or widget is not created using the UI but, for example, via the console. #