Sha256: 4e3c414f51da9b5cdb81d65a2f8d6e109eff44d6df144b180dd8247eafda954a
Contents?: true
Size: 413 Bytes
Versions: 6
Compression:
Stored size: 413 Bytes
Contents
# frozen_string_literal: true class Treasure < ActiveRecord::Base has_and_belongs_to_many :parrots belongs_to :looter, polymorphic: true # No counter_cache option given belongs_to :ship has_many :price_estimates, as: :estimate_of has_and_belongs_to_many :rich_people, join_table: "peoples_treasures", validate: false accepts_nested_attributes_for :looter end class HiddenTreasure < Treasure end
Version data entries
6 entries across 6 versions & 2 rubygems