Class: InvitationForms::Create

Inherits:
SimpleTeams::InvitationForm
  • Object
show all
Defined in:
app/forms/simple_teams/invitation_forms/create.rb

Instance Method Summary collapse

Constructor Details

#initialize(team, current_user) ⇒ Create

Returns a new instance of Create.



4
5
6
7
8
# File 'app/forms/simple_teams/invitation_forms/create.rb', line 4

def initialize(team, current_user)
  @team = team
  @current_user = current_user
  @invitation = team.invitations.new(:inviter => @current_user)
end