Sha256: 26a90b1b2f90df0514fa4db93aaa2c75e2e3d6e95fc8dc417eba43bb07a39f3b

Contents?: true

Size: 327 Bytes

Versions: 11

Compression:

Stored size: 327 Bytes

Contents

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

Version data entries

11 entries across 10 versions & 6 rubygems

Version Path
p8-castronaut-0.6.1.1 vendor/activerecord/test/models/parrot.rb
relevance-castronaut-0.6.0 vendor/activerecord/test/models/parrot.rb
relevance-castronaut-0.6.1 vendor/activerecord/test/models/parrot.rb
relevance-castronaut-0.7.4 vendor/activerecord/test/models/parrot.rb
relevance-castronaut-0.7.5 vendor/activerecord/test/models/parrot.rb
nbudin-castronaut-0.7.5 vendor/activerecord/test/models/parrot.rb
usher-0.7.0 spec/rails2_2/vendor/rails/vendor/rails/activerecord/test/models/parrot.rb
usher-0.7.0 spec/rails2_2/vendor/rails/vendor/rails/activerecord/pkg/activerecord-2.2.2/test/models/parrot.rb
factorylabs-castronaut-0.7.5 vendor/activerecord/test/models/parrot.rb
activerecord-2.2.3 test/models/parrot.rb
activerecord-2.2.2 test/models/parrot.rb