From a5474cfd517b47a9f80e009241cb5d58e737a8f5 Mon Sep 17 00:00:00 2001 From: Washington Botelho Date: Thu, 8 Feb 2018 17:16:03 -0200 Subject: [PATCH] up: table_name is already configured --- lib/rating/models/rating/rating.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rating/models/rating/rating.rb b/lib/rating/models/rating/rating.rb index ab234da..1a441f9 100644 --- a/lib/rating/models/rating/rating.rb +++ b/lib/rating/models/rating/rating.rb @@ -108,7 +108,7 @@ module Rating end def rate_table_name - @rate_table_name ||= ::Rating.config.rate_model.constantize.table_name + @rate_table_name ||= Rate.table_name end def scope_type_query(scopeable)