diff options
Diffstat (limited to 'app')
| -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 | 
