Skip to content

Commit

Permalink
Cast bool check to a string so that strip works effectively
Browse files Browse the repository at this point in the history
  • Loading branch information
mejackreed authored and cbeer committed Mar 26, 2021
1 parent 30b0c8b commit 9c13409
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/jobs/spotlight/process_bulk_updates_csv_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def process_row(exhibit, row)
# rubocop:enable Metrics/AbcSize, Metrics/CyclomaticComplexity, Metrics/MethodLength, Metrics/PerceivedComplexity

def to_bool(value)
ActiveModel::Type::Boolean.new.cast(value.strip)
ActiveModel::Type::Boolean.new.cast(value.to_s.strip)
end

def config
Expand Down

0 comments on commit 9c13409

Please sign in to comment.