Class PeerGroupAdminMembershipsController
In: app/controllers/peer_group_admin_memberships_controller.rb
Parent: ApplicationController

Methods

index  

Public Instance methods

Methods

[Source]

    # File app/controllers/peer_group_admin_memberships_controller.rb, line 23
23:   def index
24:     if current_user.admin?
25:       @peer_groups = PeerGroup.find(:all, :conditions => 'id != ' +
26:           PeerGroup.public.id.to_s)
27:     else
28:       @peer_groups = current_user.peer_group_memberships.find_all_by_role(
29:           Const::PeerGroupMembership::ADMIN).collect {|p_g_a_m| 
30:               p_g_a_m.peer_group}
31:     end
32:   end

[Validate]