moduleBanzai# Common methods for ReferenceFilters that support an optional cross-project# reference.moduleCrossProjectReference# Given a cross-project reference string, get the Project record## Defaults to value of `context[:project]` if:# * No reference is given OR# * Reference given doesn't exist## ref - String reference.## Returns a Project, or nil if the reference can't be founddefproject_from_ref(ref)returncontext[:project]unlessrefProject.find_with_namespace(ref)endendend