From cfb43ba07cfd08f9833110574fec2ee40cdaa095 Mon Sep 17 00:00:00 2001 From: Brenda Wallace Date: Sun, 28 May 2017 14:01:01 +1200 Subject: [PATCH] DRY the homes controller --- app/controllers/home_controller.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/controllers/home_controller.rb b/app/controllers/home_controller.rb index 9eb6e5003..1241c70f5 100644 --- a/app/controllers/home_controller.rb +++ b/app/controllers/home_controller.rb @@ -1,14 +1,11 @@ class HomeController < ApplicationController skip_authorize_resource + respond_to :html def index # we were previously generating a lot of instance variables like # @members_count and @interesting_crops in here, but now we call # the relevant class methods directly in the view, so that fragment # caching will be effective. - - respond_to do |format| - format.html # index.html.haml - end end end