From 188c6f326b991793239c47751ef45226c0cd8890 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Mon, 3 Oct 2016 00:26:00 +0200 Subject: Making public pages responsive, removing reblogs/favs counts from them --- app/models/favourite.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'app/models/favourite.rb') diff --git a/app/models/favourite.rb b/app/models/favourite.rb index 3681181e5..4f9b20942 100644 --- a/app/models/favourite.rb +++ b/app/models/favourite.rb @@ -14,9 +14,7 @@ class Favourite < ApplicationRecord "#{account.acct} favourited a status by #{status.account.acct}" end - def object_type - target.object_type - end + delegate :object_type, to: :target def thread status -- cgit