lib/wcc/contentful/rich_text_renderer.rb in wcc-contentful-1.5.0.rc1 vs lib/wcc/contentful/rich_text_renderer.rb in wcc-contentful-1.5.0
- old
+ new
@@ -37,15 +37,15 @@
new(document, *args, **kwargs).call
end
end
attr_reader :document
- attr_accessor :config, :store, :model_namespace
+ attr_accessor :configuration, :store, :model_namespace
- def initialize(document, config: nil, store: nil, model_namespace: nil)
+ def initialize(document, configuration: nil, store: nil, model_namespace: nil)
@document = document
- @config = config if config.present?
+ @configuration = configuration if configuration.present?
@store = store if store.present?
@model_namespace = model_namespace if model_namespace.present?
end
def call
@@ -272,12 +272,12 @@
nil
end
return false unless uri&.host.present?
app_uri =
- if config&.app_url.present?
+ if configuration&.app_url.present?
begin
- URI(config.app_url)
+ URI(configuration.app_url)
rescue StandardError
nil
end
end
uri.host != app_uri&.host