aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/tyre.rb
blob: d6270265850794d95bf62be6f55a349866d1bbd7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

class Tyre < ActiveRecord::Base
  belongs_to :car

  def self.custom_find(id)
    find(id)
  end

  def self.custom_find_by(*args)
    find_by(*args)
  end
end