diff options
| author | Marc Florisson | 2014-01-22 17:41:04 +0100 |
|---|---|---|
| committer | Marc Florisson | 2014-01-22 17:41:04 +0100 |
| commit | c9437fc2e96f415e38c1e72fa10337769381f289 (patch) | |
| tree | 199b39a7c8c5cc2cfef539f73f73c1b5fbea8a72 /app/controllers/file_validations_controller.rb | |
| parent | 4e71abdc01f9f04ce6eec1989fa756ffc823fd65 (diff) | |
| download | chouette-core-c9437fc2e96f415e38c1e72fa10337769381f289.tar.bz2 | |
merge branch validation
Diffstat (limited to 'app/controllers/file_validations_controller.rb')
| -rw-r--r-- | app/controllers/file_validations_controller.rb | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/app/controllers/file_validations_controller.rb b/app/controllers/file_validations_controller.rb deleted file mode 100644 index 274d11f9f..000000000 --- a/app/controllers/file_validations_controller.rb +++ /dev/null @@ -1,45 +0,0 @@ -class FileValidationsController < InheritedResources::Base - respond_to :html, :xml, :json - - def index - no_referential - index! - end - - def show - no_referential - @toc = TestSheetPage.find("toc") - show! - end - - def new - no_referential - @toc = TestSheetPage.find("toc") - new! - end - - def create - no_referential - create! do |success, failure| - success.html { redirect_to file_validations_path } - end - end - - - protected - def no_referential - Apartment::Database.switch("public") - end - - def resource - @file_validation ||= current_organisation.file_validations.find_by_id(params[:id]) - end - def collection - @file_validations ||= current_organisation.file_validations.paginate(:page => params[:page]) - end - def create_resource(file_validation) - file_validation.organisation = current_organisation - super - end - -end |
