Class: ExceptionHunter::ApplicationRecord
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- ExceptionHunter::ApplicationRecord
- Defined in:
- app/models/exception_hunter/application_record.rb
Direct Known Subclasses
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 |