module HasManyTranslations # The ActiveRecord model representing translations. class Translation < ActiveRecord::Base # Associate polymorphically with the parent record. belongs_to :translated, :polymorphic => true def initial? number == 1 end end end