app/cms/scrivito/page_config.rb in scrivito_sdk-1.16.0 vs app/cms/scrivito/page_config.rb in scrivito_sdk-1.17.0.rc1
- old
+ new
@@ -1,10 +1,10 @@
module Scrivito
class PageConfig < Struct.new(:obj, :editing_context, :lookup_context)
- def initialize(**named_params)
- named_params.each { |key, value| self[key] = value }
+ def initialize(options)
+ super(*options.values_at(:obj, :editing_context, :lookup_context))
end
def to_json
{
current_page: current_page_config,