Sha256: 9d16fefbcd1d8c155bd39a3ae03ac3a8b7ad0168e498d68a5f92ded1795244f5
Contents?: true
Size: 551 Bytes
Versions: 2
Compression:
Stored size: 551 Bytes
Contents
require_dependency "jobshop/application_controller" module Jobshop class Teams::RegistrationsController < ApplicationController before_action 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jobshop-0.0.29 | app/controllers/jobshop/teams/registrations_controller.rb |
jobshop-0.0.23 | app/controllers/jobshop/teams/registrations_controller.rb |