Class: InvitationForms::Create
- Inherits:
-
SimpleTeams::InvitationForm
- Object
- SimpleTeams::InvitationForm
- InvitationForms::Create
- Defined in:
- app/forms/simple_teams/invitation_forms/create.rb
Instance Method Summary collapse
-
#initialize(team, current_user) ⇒ Create
constructor
A new instance of Create.
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 |