Class PeerGroupMembershipsController
In: app/controllers/peer_group_memberships_controller.rb
Parent: ApplicationController

Methods

index  

Public Instance methods

Methods

[Source]

    # File app/controllers/peer_group_memberships_controller.rb, line 23
23:   def index
24:     if current_user.admin?
25:       @peer_groups = PeerGroup.find(:all)
26:     else
27:       @peer_groups = current_user.peer_group_memberships.collect {|p_m|
28:           p_m.peer_group}
29:       # TODO put back to current_user.peer_groups when the rails-bug is fixed
30:     end
31:   end

[Validate]