lib/scrivito/configuration.rb in scrivito_sdk-0.66.0 vs lib/scrivito/configuration.rb in scrivito_sdk-0.70.0.rc1

- old
+ new

@@ -206,10 +206,13 @@ self.ca_file = DEFAULT_CA_FILE self.endpoint = 'api.scrivito.com' self.check_batch_size = 100 self.legacy_routing = false self.default_image_transformation = {} + self.choose_homepage_callback = -> (env) { Obj.root } + self.find_user_proc = nil + reset_editing_auth_callback! end # # Configures the in-place UI to use a locale different from the one used by the rest of the # application. @@ -236,11 +239,11 @@ attr_accessor :choose_homepage_callback, :check_batch_size # # Set the default {Scrivito::Binary#transform image transformation}. # - # @api beta + # @api public # # When delivering binary Objs, the default image transformation will be applied if # {Scrivito::BasicObj#apply_image_transformation? Obj#apply_image_transformation?} returns # +true+. # @@ -257,10 +260,10 @@ attr_reader :default_image_transformation # Configure a callback to be invoked when the Scrivito SDK delivers the homepage. # The given callback will receive the rack env # and must return an {BasicObj Obj} to be used as the homepage. - # If no callback is configured, {BasicObj.homepage Obj.homepage} will be used as the default. + # If no callback is configured, {BasicObj.root Obj.root} will be used as the default. # @api public def choose_homepage(&block) self.choose_homepage_callback = block end