Sha256: 4862aff06328beb5acbc6f2cc9739dbb6283cc13ce8f398fa823e3baaa52db6c

Contents?: true

Size: 516 Bytes

Versions: 2

Compression:

Stored size: 516 Bytes

Contents

class InvitationsController < ApplicationController
  
  def new 
    
  end
  
  def create
    
    if params[:mails].present?
      receivers = params[:mails].split(",")
      receivers.each do |receiver|
        InvitationMailer.send_invitation(receiver, current_subject, params[:message]).deliver
      end
      redirect_to new_invitation_path, :flash => { :success => t('invitation.success')}
    else
      redirect_to new_invitation_path, :flash => { :error => t('invitation.error')}
    end
    
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
social_stream-base-0.6.1 app/controllers/invitations_controller.rb
social_stream-base-0.6.0 app/controllers/invitations_controller.rb