summaryrefslogtreecommitdiff
path: root/app/controllers/restore_jobs_controller.rb
blob: bfecc33c5c0e9eeb8df8110de627519bdbecbc18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
class RestoreJobsController < ApplicationController
  skip_before_filter :start_setup_if_new_installation, :only => [:new, :create, :show, :index]

  load_and_authorize_resource :restore_job

  def index
  end

  def show
  end

  def new
  end

  def create
    @restore_job.state = 'new'

    if @restore_job.save
      session[:user_id] = nil
      redirect_to @restore_job, :notice => t('restore_jobs.controller.successfuly_created')
    else
      render :new
    end
  end
end