Skip to content

Commit

Permalink
Use hash with indiferent access method and not class
Browse files Browse the repository at this point in the history
Co-authored-by: Catalin Voineag <[email protected]>
  • Loading branch information
tomas-stefano and CatalinVoineag committed Jun 28, 2024
1 parent 3e4ca06 commit 3814c83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/components/a_level_row_component.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<% if @course.a_level_requirements.present? %>
<% Array(@course.a_level_subject_requirements).map do |a_level_subject_requirement| %>
<p class="govuk-body">
<%= a_level_subject_row_content(ActiveSupport::HashWithIndifferentAccess.new(a_level_subject_requirement)) %>
<%= a_level_subject_row_content(a_level_subject_requirement.with_indifferent_access) %>
</p>
<% end %>

Expand Down

0 comments on commit 3814c83

Please sign in to comment.