Sha256: 7a2e7e1d51cae3d74d1dea2da143f799060d304aea62f07e0a422814024c5b67

Contents?: true

Size: 551 Bytes

Versions: 7

Compression:

Stored size: 551 Bytes

Contents

require_dependency "jobshop/application_controller"

module Jobshop
  class Teams::RegistrationsController < ApplicationController
    skip_before_action :authenticate_user!

    before_action RegistrationTokenValidation

    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

7 entries across 7 versions & 1 rubygems

Version Path
jobshop-0.0.113 app/controllers/jobshop/teams/registrations_controller.rb
jobshop-0.0.109 app/controllers/jobshop/teams/registrations_controller.rb
jobshop-0.0.107 app/controllers/jobshop/teams/registrations_controller.rb
jobshop-0.0.101 app/controllers/jobshop/teams/registrations_controller.rb
jobshop-0.0.67 app/controllers/jobshop/teams/registrations_controller.rb
jobshop-0.0.61 app/controllers/jobshop/teams/registrations_controller.rb
jobshop-0.0.59 app/controllers/jobshop/teams/registrations_controller.rb