diff options
| author | Zog | 2018-05-30 17:13:30 +0200 |
|---|---|---|
| committer | Zog | 2018-05-30 17:13:34 +0200 |
| commit | 868222a77361068a84eb31a2878b77d275f45df8 (patch) | |
| tree | d0e728c0abf2fa2ae3e90162d19b05705772072c | |
| parent | 63a277b88de6703dcf4f32508099def1e9cbca19 (diff) | |
| download | chouette-core-868222a77361068a84eb31a2878b77d275f45df8.tar.bz2 | |
Remove deprecated controller
| -rw-r--r-- | app/controllers/stop_area_copies_controller.rb | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/app/controllers/stop_area_copies_controller.rb b/app/controllers/stop_area_copies_controller.rb deleted file mode 100644 index aaa08620e..000000000 --- a/app/controllers/stop_area_copies_controller.rb +++ /dev/null @@ -1,31 +0,0 @@ -class StopAreaCopiesController < ChouetteController - include ReferentialSupport - defaults :resource_class => StopAreaCopy - belongs_to :referential do - belongs_to :stop_area, :parent_class => Chouette::StopArea - end - - actions :new, :create - respond_to :html, :only => :new - - def new - @stop_area_copy = StopAreaCopy.new(:hierarchy => params[:hierarchy], :source => parent) - new! do - build_breadcrumb :new - end - end - - def create - @stop_area_copy = StopAreaCopy.new(params[:stop_area_copy]) - @stop_area = parent - if @stop_area_copy.save - redirect_to stop_area_referential_stop_area_path(@stop_area.stop_area_referential, @stop_area_copy.copy), notice: I18n.t("stop_area_copies.new.success") - else - flash[:error] = I18n.t("stop_area_copies.errors.copy_aborted") + "<br>" + @stop_area_copy.errors.full_messages.join("<br>") - render :action => :new - end - end - - protected - -end |
