Sha256: e2087152cc0e5d22ecbc8c01bd92f314dedcad0ae212b818904a25ac18b78aa7
Contents?: true
Size: 338 Bytes
Versions: 20
Compression:
Stored size: 338 Bytes
Contents
class Vegetable < ActiveRecord::Base validates_presence_of :name def self.inheritance_column 'custom_type' end end class Cucumber < Vegetable end class Cabbage < Vegetable end class GreenCabbage < Cabbage end class KingCole < GreenCabbage end class RedCabbage < Cabbage belongs_to :seller, :class_name => 'Company' end
Version data entries
20 entries across 20 versions & 3 rubygems