Class: User
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- User
- Defined in:
- lib/wt_activerecord_index_spy/test_models.rb
Overview
This class should not be required by the library because it’s used only by tests. It should be placed in spec/support, but there is a test that checks the origin of the query, which would return true if the file was located in a “spec/” folder.
Class Method Summary collapse
Class Method Details
.some_method_with_a_query_missing_index ⇒ Object
12 13 14 |
# File 'lib/wt_activerecord_index_spy/test_models.rb', line 12 def self.some_method_with_a_query_missing_index find_by(name: "any") end |