Skip to content

Commit 9c13409

Browse files
mejackreedcbeer
authored andcommitted
Cast bool check to a string so that strip works effectively
1 parent 30b0c8b commit 9c13409

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/jobs/spotlight/process_bulk_updates_csv_job.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def process_row(exhibit, row)
7272
# rubocop:enable Metrics/AbcSize, Metrics/CyclomaticComplexity, Metrics/MethodLength, Metrics/PerceivedComplexity
7373

7474
def to_bool(value)
75-
ActiveModel::Type::Boolean.new.cast(value.strip)
75+
ActiveModel::Type::Boolean.new.cast(value.to_s.strip)
7676
end
7777

7878
def config

0 commit comments

Comments
 (0)