app/models/tr8n/translation_key_source.rb in tr8n-3.2.1 vs app/models/tr8n/translation_key_source.rb in tr8n-3.2.2

- old
+ new

@@ -18,12 +18,34 @@ # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #++ +# +#-- Tr8n::TranslationKeySource Schema Information +# +# Table name: tr8n_translation_key_sources +# +# id INTEGER not null, primary key +# translation_key_id integer not null +# translation_source_id integer not null +# details text +# created_at datetime +# updated_at datetime +# +# Indexes +# +# tr8n_trans_keys_source_id (translation_source_id) +# tr8n_trans_keys_key_id (translation_key_id) +# +#++ class Tr8n::TranslationKeySource < ActiveRecord::Base set_table_name :tr8n_translation_key_sources + + attr_accessible :translation_key_id, :translation_source_id, :details + attr_accessible :translation_source, :translation_key + after_destroy :clear_cache belongs_to :translation_source, :class_name => "Tr8n::TranslationSource" belongs_to :translation_key, :class_name => "Tr8n::TranslationKey"