lib/inch/api/suggest.rb in inch-0.3.0 vs lib/inch/api/suggest.rb in inch-0.3.1.rc1
- old
+ new
@@ -97,10 +97,10 @@
def relevant_grades
grades.size >= 2 ? grades[-2..-1] : [grades.last].compact
end
def relevant_objects
- select_by_priority(codebase.objects, @options.object_min_priority)
+ @relevant_objects ||= select_by_priority(codebase.objects, @options.object_min_priority)
end
def relevant_priorities
(@options.object_min_priority..99)
end