Class: Droom::GroupInvitationsController

Inherits:
EngineController
  • Object
show all
Defined in:
app/controllers/droom/group_invitations_controller.rb

Instance Method Summary collapse

Methods inherited from EngineController

#current_ability

Instance Method Details

#createObject



23
24
25
26
27
28
29
# File 'app/controllers/droom/group_invitations_controller.rb', line 23

def create
  if @group_invitation.update_attributes(group_invitation_params)
    render :partial => "created"
  else
    respond_with @group_invitation
  end
end

#destroyObject



9
10
11
12
# File 'app/controllers/droom/group_invitations_controller.rb', line 9

def destroy
  @group_invitation.destroy
  head :ok
end

#indexObject



14
15
16
17
# File 'app/controllers/droom/group_invitations_controller.rb', line 14

def index
  @event = Droom::Event.find(params[:event_id])
  render :partial => 'attending_groups'
end

#newObject



19
20
21
# File 'app/controllers/droom/group_invitations_controller.rb', line 19

def new
  respond_with @group_invitation
end