diff options
author | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-02-26 10:48:08 +0100 |
---|---|---|
committer | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-02-26 10:48:08 +0100 |
commit | ffaa80e8d46b3b6b7597af6f157724005f48bae4 (patch) | |
tree | 0ba02970c4ce7a30d2859b01d9121fbf04cd5c75 /app/controllers | |
parent | 0442cd19bc9383669b506185356227361a16e442 (diff) |
RestoreJob scaffold
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/restore_jobs_controller.rb | 24 |
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 |