Improve browsing of (Ldap)Group.
[gitorious:mainline.git] / app / models / group_behavior.rb
1
2 module GroupBehavior
3
4   def self.extended(klass)
5     klass.belongs_to :creator, :class_name => "User", :foreign_key => "user_id"
6     # TODO rest of ActiveRecord stuff in here!
7   end
8
9   module InstanceMethods
10     def to_param_with_prefix
11       "+#{to_param}"
12     end
13   end
14 end