refactor: better naming

This commit is contained in:
Shivam Mishra
2023-05-04 13:49:14 +05:30
parent ce394e7f08
commit 1a812692c9
+4 -4
View File
@@ -15,13 +15,13 @@ module Labelable
end
def preloaded_label_list
unless @taggings_cache
@taggings_cache = []
unless @labels_cache
@labels_cache = []
taggings.each do |tagging|
@taggings_cache << tagging.tag.name
@labels_cache << tagging.tag.name
end
end
@taggings_cache || []
@labels_cache || []
end
end