aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/teapot.rb
blob: b035b18c1bbf7d9737a2bade28bca38282c49c78 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
class Teapot
  # I'm a little teapot,
  # Short and stout,
  # Here is my handle
  # Here is my spout
  # When I get all steamed up,
  # Hear me shout,
  # Tip me over and pour me out!
  #
  # HELL YEAH TEAPOT SONG

  include ActiveRecord::Model
end

class OtherTeapot < Teapot
end

class OMFGIMATEAPOT
  def aaahhh
    "mmm"
  end
end

class CoolTeapot < OMFGIMATEAPOT
  include ActiveRecord::Model
  self.table_name = "teapots"
end

class Ceiling
  include ActiveRecord::Model

  class Teapot
    include ActiveRecord::Model
  end
end