summaryrefslogtreecommitdiff
path: root/app/controllers/restore_jobs_controller.rb
diff options
context:
space:
mode:
authorJulian Pawlowski <julian.pawlowski@gmail.com>2013-02-26 11:30:52 +0100
committerJulian Pawlowski <julian.pawlowski@gmail.com>2013-02-26 11:30:52 +0100
commit7c7b788d0d1aa1abe63b3506c4ced555de157fd5 (patch)
treeb19e0056c97eccb910dd8c3c7df9ce76c0c2e47a /app/controllers/restore_jobs_controller.rb
parent6c2ba1352010ef4c63b2dad1e90ab8b4366b0195 (diff)
parentececfdf24075dd4e2794734a07187750b1b33e13 (diff)
Merge branches 'develop' and 'develop' of https://github.com/amooma/GS5 into develop
Diffstat (limited to 'app/controllers/restore_jobs_controller.rb')
-rw-r--r--app/controllers/restore_jobs_controller.rb24
1 files changed, 24 insertions, 0 deletions
diff --git a/app/controllers/restore_jobs_controller.rb b/app/controllers/restore_jobs_controller.rb
new file mode 100644
index 0000000..1cccdc1
--- /dev/null
+++ b/app/controllers/restore_jobs_controller.rb
@@ -0,0 +1,24 @@
+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
+ redirect_to @restore_job, :notice => t('restore_jobs.controller.successfuly_created')
+ else
+ render :new
+ end
+ end
+end