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