Sha256: f6261e269fca9797006e14ea704d1d15821cc7c1ceb9137013c36c8f2993e2c1

Contents?: true

Size: 376 Bytes

Versions: 5

Compression:

Stored size: 376 Bytes

Contents

class PageCategory < Category
  has_and_belongs_to_many :elements,
    :join_table => 'categories_elements',
    :foreign_key => 'category_id',
    :association_foreign_key => 'element_id',
    :class_name => 'Page'
  has_and_belongs_to_many :pages,
    :join_table => 'categories_elements',
    :foreign_key => 'category_id',
    :association_foreign_key => 'element_id'
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
forgeos_cms-1.9.5.rc1 app/models/page_category.rb
forgeos_cms-1.9.4 app/models/page_category.rb
forgeos_cms-1.9.2 app/models/page_category.rb
forgeos_cms-1.9.1 app/models/page_category.rb
forgeos_cms-1.9.0 app/models/page_category.rb