From 3814c8365403c3172a5ca5a8dcf8134b1b0e4e68 Mon Sep 17 00:00:00 2001 From: Tomas D'Stefano Date: Fri, 28 Jun 2024 14:56:10 +0100 Subject: [PATCH] Use hash with indiferent access method and not class Co-authored-by: Catalin Voineag <11318084+CatalinVoineag@users.noreply.github.com> --- app/components/a_level_row_component.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/a_level_row_component.html.erb b/app/components/a_level_row_component.html.erb index 6a9c013405..001b6f9857 100644 --- a/app/components/a_level_row_component.html.erb +++ b/app/components/a_level_row_component.html.erb @@ -2,7 +2,7 @@ <% if @course.a_level_requirements.present? %> <% Array(@course.a_level_subject_requirements).map do |a_level_subject_requirement| %>

- <%= a_level_subject_row_content(ActiveSupport::HashWithIndifferentAccess.new(a_level_subject_requirement)) %> + <%= a_level_subject_row_content(a_level_subject_requirement.with_indifferent_access) %>

<% end %>