Commit 95567904 authored by Benjamin Neff's avatar Benjamin Neff

Fix Person.find_by_substring with frozen strings

parent 723be461
......@@ -104,7 +104,7 @@ class Person < ApplicationRecord
# @param [String] search substring
# @return [Person::ActiveRecord_Relation]
scope :find_by_substring, ->(search_str) {
search_str.strip!
search_str = search_str.strip
if search_str.blank? || search_str.size < 2
none
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment