aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/tyre.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/models/tyre.rb')
-rw-r--r--activerecord/test/models/tyre.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/activerecord/test/models/tyre.rb b/activerecord/test/models/tyre.rb
index bc3444aa7d..e50a21ca68 100644
--- a/activerecord/test/models/tyre.rb
+++ b/activerecord/test/models/tyre.rb
@@ -1,3 +1,11 @@
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