app/helpers/workarea/admin/application_helper.rb in workarea-admin-3.5.22 vs app/helpers/workarea/admin/application_helper.rb in workarea-admin-3.5.23
- old
+ new
@@ -173,8 +173,12 @@
parts
.sort_by { |unit, _ | ActiveSupport::Duration::PARTS.index(unit) }
.map { |unit, val| t("workarea.duration.#{unit}", count: val) }
.to_sentence
end
+
+ def navigation_redirects_enabled?
+ !Rails.application.config.consider_all_requests_local
+ end
end
end
end