class Role < ActiveRecord::Base
has_many :permissions
has_many :rights, :through => :permissions
has_many :relations
end