Sha256: aabfdd5e67679e13cbe3c6940a49864753475c38ad70f11b4720ef5a601083f5
Contents?: true
Size: 545 Bytes
Versions: 5
Compression:
Stored size: 545 Bytes
Contents
require_dependency "jobshop/application_controller" module Jobshop class Teams::RegistrationsController < ApplicationController include RegistrationTokenValidation skip_before_action :authenticate_user! layout "jobshop/unauthenticated" 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
Version data entries
5 entries across 5 versions & 1 rubygems