Sha256: 46edc83433e4eac0bcb18c2740da76ed6d9469ab41fd48243e55deee7fca9844
Contents?: true
Size: 286 Bytes
Versions: 9
Compression:
Stored size: 286 Bytes
Contents
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
Version data entries
9 entries across 9 versions & 1 rubygems