Procházet zdrojové kódy

Remove redundant delete_feed route

master
Adrian Short před 11 roky
rodič
revize
8c9309b45e
2 změnil soubory, kde provedl 3 přidání a 18 odebrání
  1. +2
    -12
      app/controllers/feeds_controller.rb
  2. +1
    -6
      config/routes.rb

+ 2
- 12
app/controllers/feeds_controller.rb Zobrazit soubor

@@ -59,18 +59,8 @@ class FeedsController < ApplicationController
end
end

# DELETE /feeds/1
# DELETE /feeds/1.json
# def destroy
# @feed = Feed.find(params[:id])
# @feed.destroy
#
# respond_to do |format|
# format.html { redirect_to feeds_url, notice: 'Feed deleted OK' }
# format.json { head :no_content }
# end
# end
# Feeds are never deleted. They're always retained in the DB.

def fetch
@feed = Feed.find(params[:id])
@feed.fetch


+ 1
- 6
config/routes.rb Zobrazit soubor

@@ -2,12 +2,7 @@ Apollo::Application.routes.draw do
get "logout" => "sessions#destroy", :as => "logout"
get "login" => "sessions#new", :as => "login"

resources :layers do
member do
delete "delete_feed"
end
end

resources :layers
resources :users
resources :sessions
resources :password_resets


Načítá se…
Zrušit
Uložit