From 449f88a595af707cec02270dd752773a18dacfc2 Mon Sep 17 00:00:00 2001 From: Neil Smith Date: Sat, 18 Jan 2014 12:39:26 +0000 Subject: [PATCH] Tidied whitespace --- app/controllers/application_controller.rb | 1 + app/controllers/feed_controller.rb | 7 ------- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 840f64a..edcea80 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -1,6 +1,7 @@ class ApplicationController < ActionController::Base # Prevent CSRF attacks by raising an exception. # For APIs, you may want to use :null_session instead. + # protect_from_forgery with: :exception protect_from_forgery with: :null_session end diff --git a/app/controllers/feed_controller.rb b/app/controllers/feed_controller.rb index 2fd0bd6..f7b8c3e 100644 --- a/app/controllers/feed_controller.rb +++ b/app/controllers/feed_controller.rb @@ -1,7 +1,5 @@ class FeedController < ApplicationController - # skip_before_filter :verify_authenticity_token - def index @feeds = FeedItem.select(:feed_name).distinct respond_to do |format| @@ -9,7 +7,6 @@ class FeedController < ApplicationController format.rss { render :layout => false } end end - def show if FeedItem::valid_feed_name?(params[:feed_name]) @@ -34,7 +31,6 @@ class FeedController < ApplicationController end end - def update if FeedItem::valid_feed_name?(params[:feed_name]) item = FeedItem.in_feed(params[:feed_name]).entitled(params[:title]).take @@ -59,7 +55,6 @@ class FeedController < ApplicationController # private - private def create_item item = FeedItem.new(:feed_name => params[:feed_name], :title => params[:title], @@ -78,7 +73,6 @@ class FeedController < ApplicationController end end - private def update_item(item) if item.update_attribute(:description, params[:description]) flash[:notice] = "Element #{params[:title]} updated" @@ -95,7 +89,6 @@ class FeedController < ApplicationController end end - private def destroy_item(item) if item.destroy flash[:notice] = "Element #{params[:title]} deleted" -- 2.34.1