redmine_glossary/app/models/glossary_category.rb

4 lines
122 B
Ruby

class GlossaryCategory < ActiveRecord::Base
has_many :terms, class_name: 'GlossaryTerm', foreign_key: 'category_id'
end