X-Git-Url: https://git.njae.me.uk/?a=blobdiff_plain;f=vendor%2Frails%2Factiverecord%2Ftest%2Fmodels%2Fparrot.rb;fp=vendor%2Frails%2Factiverecord%2Ftest%2Fmodels%2Fparrot.rb;h=b9431fd1c0c6c1cd77c92e8c23eb6b59bb39b738;hb=d115f2e23823271635bad69229a42cd8ac68debe;hp=0000000000000000000000000000000000000000;hpb=37cb670bf3ddde90b214e591f100ed4446469484;p=depot.git diff --git a/vendor/rails/activerecord/test/models/parrot.rb b/vendor/rails/activerecord/test/models/parrot.rb new file mode 100644 index 0000000..b9431fd --- /dev/null +++ b/vendor/rails/activerecord/test/models/parrot.rb @@ -0,0 +1,14 @@ +class Parrot < ActiveRecord::Base + set_inheritance_column :parrot_sti_class + has_and_belongs_to_many :pirates + has_and_belongs_to_many :treasures + has_many :loots, :as => :looter + alias_attribute :title, :name +end + +class LiveParrot < Parrot +end + +class DeadParrot < Parrot + belongs_to :killer, :class_name => 'Pirate' +end