Sha256: 7d0ac3314c6ef54f9c8016118d8bf59c608ef2b443b51d3c1ce8115822267261

Contents?: true

Size: 277 Bytes

Versions: 2

Compression:

Stored size: 277 Bytes

Contents

class TranslationText < ActiveRecord::Base
  belongs_to :translation_key, :class_name => 'TranslationKey'
  validates_presence_of :locale
  validates_uniqueness_of :locale, :scope=>:translation_key_id
  attr_accessible :text, :locale, :translation_key, :translation_key_id
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fast_gettext-0.6.10 lib/fast_gettext/translation_repository/db_models/translation_text.rb
fast_gettext-0.6.9 lib/fast_gettext/translation_repository/db_models/translation_text.rb