diff options
author | Peter Kozak <spag@golwen.net> | 2013-02-26 09:22:10 -0500 |
---|---|---|
committer | Peter Kozak <spag@golwen.net> | 2013-02-26 09:22:10 -0500 |
commit | eb0b73618dac66d5f9e1c4127af156886d362315 (patch) | |
tree | 0fdaaa0c26ae3365a21f4d02719533151db5e111 /app/controllers/restore_jobs_controller.rb | |
parent | 0a976c6b463288df4a9516bbd08f6232a37d427c (diff) | |
parent | 36919fb419a40688daa97e36734f579488cb56e2 (diff) |
Merge branch 'develop' of github.com:amooma/GS5 into develop
Diffstat (limited to 'app/controllers/restore_jobs_controller.rb')
-rw-r--r-- | app/controllers/restore_jobs_controller.rb | 25 |
1 files changed, 25 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..bfecc33 --- /dev/null +++ b/app/controllers/restore_jobs_controller.rb @@ -0,0 +1,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 |