Sha256: da859a4971cb427a3a3ed22e252e875f7adeb3a46bf37813ce67ac3d420bff60

Contents?: true

Size: 459 Bytes

Versions: 4

Compression:

Stored size: 459 Bytes

Contents

require_dependency "jobshop/application_controller"

module Jobshop
  class Teams::RegistrationsController < ApplicationController
    include RegistrationTokenValidation

    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

4 entries across 4 versions & 1 rubygems

Version Path
jobshop-0.0.9 app/controllers/jobshop/teams/registrations_controller.rb
jobshop-0.0.7 app/controllers/jobshop/teams/registrations_controller.rb
jobshop-0.0.6 app/controllers/jobshop/teams/registrations_controller.rb
jobshop-0.0.5 app/controllers/jobshop/teams/registrations_controller.rb