require_dependency "jobshop/application_controller" module Jobshop class Teams::RegistrationsController < ApplicationController include RegistrationTokenValidation skip_before_action :authenticate_user! def new @registration = ::Jobshop::Registration.new(params) end def create @registration = ::Jobshop::Registration.new(params) if @registration.save sign_in_and_redirect(@registration.user) else render(:new) end end end end