lib/saasable/railties/helpers.rb in saasable-6.0.0 vs lib/saasable/railties/helpers.rb in saasable-6.1.0

- old
+ new

@@ -25,10 +25,13 @@ def saas_not_found_redirect_to(path_or_url) class_eval <<-METHOD, __FILE__, __LINE__ + 1 private def _redirect_if_saas_not_found unless current_saas - redirect_to "#{path_or_url}" + respond_to do |format| + format.html { redirect_to "#{path_or_url}" } + format.any { head :not_found } + end end end METHOD end