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)