Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
asmega committed Jul 3, 2024
1 parent 7c92fd1 commit a248d4b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class FixedTermContractForm < Form
attribute :fixed_term_full_year, :boolean

validates :fixed_term_full_year,
inclusion: { in: -> (form) { form.radio_options.map(&:id) }, message: i18n_error_message(:inclusion) }
inclusion: {in: ->(form) { form.radio_options.map(&:id) }, message: i18n_error_message(:inclusion)}

def radio_options
[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class TaughtAtLeastOneTermForm < Form
validates :taught_at_least_one_term,
inclusion: {
in: [true, false],
message: -> (object, data) { i18n_error_message(:inclusion, school_name: object.school.name).call(object, data) }
message: ->(object, data) { i18n_error_message(:inclusion, school_name: object.school.name).call(object, data) }
}

def radio_options
Expand Down

0 comments on commit a248d4b

Please sign in to comment.