Class: ExceptionHunter::ApplicationRecord

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/exception_hunter/application_record.rb

Direct Known Subclasses

Error, ErrorGroup

Class Method Summary collapse

Class Method Details

.sql_similarity(attr, value) ⇒ Object



8
9
10
# File 'app/models/exception_hunter/application_record.rb', line 8

def sql_similarity(attr, value)
  Arel::Nodes::NamedFunction.new('similarity', [attr, Arel::Nodes.build_quoted(value)])
end