Skip to content

Commit

Permalink
Remove underscores from enum suffix
Browse files Browse the repository at this point in the history
  • Loading branch information
avinhurry committed Sep 2, 2024
1 parent a58aa61 commit 9902011
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/models/course.rb
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@ class Course < ApplicationRecord
# but some require grade 5 ("strong C")
PROVIDERS_REQUIRING_GCSE_GRADE_5 = %w[I30].freeze

enum :maths, ENTRY_REQUIREMENT_OPTIONS, _suffix: :for_maths
enum :english, ENTRY_REQUIREMENT_OPTIONS, _suffix: :for_english
enum :science, ENTRY_REQUIREMENT_OPTIONS, _suffix: :for_science
enum :maths, ENTRY_REQUIREMENT_OPTIONS, suffix: :for_maths
enum :english, ENTRY_REQUIREMENT_OPTIONS, suffix: :for_english
enum :science, ENTRY_REQUIREMENT_OPTIONS, suffix: :for_science

after_validation :remove_unnecessary_enrichments_validation_message
before_save :set_applications_open_from
Expand Down

0 comments on commit 9902011

Please sign in to comment.