From fae32634b15a29e66d5c2a04015f2f947cf54627 Mon Sep 17 00:00:00 2001 From: Naoki Kosaka Date: Sat, 5 Jan 2019 15:17:12 +0900 Subject: Use Contact User as Relay, Report, Subscribe. (#9661) * Use Contact User as Relay, Report, Subscribe. * Use Account.representative to fetch contact user. * Use find_local. * No reason to use Account.representative in subscribe_service. * Don't required representative! * Fallback is included in Account.representative method. --- app/services/report_service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/services/report_service.rb') diff --git a/app/services/report_service.rb b/app/services/report_service.rb index 057d05ab9..1bcc1c0d5 100644 --- a/app/services/report_service.rb +++ b/app/services/report_service.rb @@ -52,6 +52,6 @@ class ReportService < BaseService end def some_local_account - @some_local_account ||= Account.local.where(suspended: false).first + @some_local_account ||= Account.representative end end -- cgit