app/models/arclight/requests/google_form.rb in arclight-0.2.0 vs app/models/arclight/requests/google_form.rb in arclight-0.3.0
- old
+ new
@@ -20,20 +20,20 @@
end
##
# Url of form to fill
def url
- document.repository_config.google_request_url
+ document.repository_config&.request_url_for_type('google_form')
end
##
# Converts mappings as a query url param into a Hash used for sending
# messages and providing pre-filled form fields
# "collection_name=entry.123" => { "collection_name" => "entry.123" }
# @return [Hash]
def form_mapping
Rack::Utils.parse_nested_query(
- document.repository_config.google_request_mappings
+ document.repository_config&.request_mappings_for_type('google_form')
)
end
def title
presenter.heading