Sha256: 9ed45513b5ebdf47fb480cfce43d1a372ab2e563fe04d8f156d01549fdb48b92
Contents?: true
Size: 521 Bytes
Versions: 1
Compression:
Stored size: 521 Bytes
Contents
require_dependency "jobshop/application_controller" module Jobshop class Teams::LookupsController < ApplicationController skip_before_action :authenticate_user! def show @lookup = Jobshop::User.new end def create emails = params[:user][:email].split(",").map(&:strip).take(5) Jobshop::Team.grouped_by_email(emails).each_pair do |email, teams| Jobshop::TeamsMailer.found_teams(email, teams).deliver_later end redirect_to new_user_session_path end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jobshop-0.0.41 | app/controllers/jobshop/teams/lookups_controller.rb |