app/helpers/spotlight/application_helper.rb in blacklight-spotlight-4.2.0 vs app/helpers/spotlight/application_helper.rb in blacklight-spotlight-4.3.0

- old
+ new

@@ -35,11 +35,11 @@ # is insufficient to generate the expected routes def current_page_for_locale(locale) initial_exception = nil ([self] + additional_locale_routing_scopes).each do |scope| - return scope.public_send(:url_for, params.to_unsafe_h.merge(locale: locale)) + return scope.public_send(:url_for, params.to_unsafe_h.merge(locale:)) rescue ActionController::UrlGenerationError => e initial_exception ||= e end raise initial_exception @@ -49,10 +49,10 @@ [spotlight, main_app] end # Can search for named routes directly in the main app, omitting # the "main_app." prefix - def method_missing(method, *args, &block) + def method_missing(method, *args, &) if main_app_url_helper?(method) main_app.send(method, *args) else super end