aboutsummaryrefslogblamecommitdiffstats
path: root/activerecord/test/models/teapot.rb
blob: b035b18c1bbf7d9737a2bade28bca38282c49c78 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                
 


                          









                                







                               
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