Sha256: 84a2cab30ef5cfe1ad3d3b0f7d5670a54434a7f3257a0e8d5ee55ed38be3151d
Contents?: true
Size: 229 Bytes
Versions: 14
Compression:
Stored size: 229 Bytes
Contents
class EatersFoodstuff < ActiveRecord::Base belongs_to :foodstuff, :class_name => "Petfood", :foreign_key => "foodstuff_id" belongs_to :eater, :polymorphic => true before_save { |record| record.some_attribute = 3 } end
Version data entries
14 entries across 14 versions & 3 rubygems