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

Version Path
has_many_translations-0.4.6 lib/has_many_translations/translation.rb
has_many_translations-0.4.5 lib/has_many_translations/translation.rb
has_many_translations-0.4.4 lib/has_many_translations/translation.rb
has_many_translations-0.4.3 lib/has_many_translations/translation.rb
has_many_translations-0.3.8 lib/has_many_translations/translation.rb
has_many_translations-0.3.7 lib/has_many_translations/translation.rb
has_many_translations-0.3.6 lib/has_many_translations/translation.rb
has_many_translations-0.3.4 lib/has_many_translations/translation.rb
has_many_translations-0.3.3 lib/has_many_translations/translation.rb