lib/scrivito/configuration.rb in scrivito_sdk-0.60.0 vs lib/scrivito/configuration.rb in scrivito_sdk-0.65.0.rc1
- old
+ new
@@ -174,11 +174,10 @@
@ca_file = path
end
def to_prepare
unless Rails.configuration.cache_classes
- NamedLink.reset_cache
BasicObj.reset_type_computer!
BasicWidget.reset_type_computer!
end
end
@@ -205,10 +204,11 @@
def set_defaults!
self.ca_file = DEFAULT_CA_FILE
self.endpoint = 'api.scrivito.com'
self.check_batch_size = 100
+ self.legacy_routing = false
end
#
# Configures the in-place UI to use a locale different from the one used by the rest of the
# application.
@@ -222,9 +222,16 @@
# # But the in-place UI will nevertheless use +:en+.
# config.ui_locale = :en
# end
#
attr_accessor :ui_locale
+
+
+ # @api public
+ #
+ # Scrivito changed its routing to a slug first url scheme. This configuration option
+ # allows you to switch back to the old id first url scheme.
+ attr_accessor :legacy_routing
attr_accessor :choose_homepage_callback, :check_batch_size
# Configure a callback to be invoked when the Scrivito SDK delivers the homepage.
# The given callback will receive the rack env