Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

15 lines (10 sloc) 0.347 kB
class Category < ActiveRecord::Base
default_scope :order => "position"
acts_as_tree
acts_as_list
has_many :forums, :dependent => :nullify
has_many :permissions
has_many :groups, :through => :permissions
named_scope :without_parent, :conditions => { :parent_id => nil }, :include => :permissions
validates_presence_of :name
end
Jump to Line
Something went wrong with that request. Please try again.