name.rb 402 B

12345678
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class Sequencer::Unit::Import::Common::Model::FindBy::Name < Sequencer::Unit::Import::Common::Model::FindBy::SameNamedAttribute
  3. def lookup_find_by(attribute, value)
  4. quoted_column = ActiveRecord::Base.connection.quote_column_name(attribute)
  5. model_class.find_by("LOWER(#{quoted_column}) = LOWER(?)", value)
  6. end
  7. end