• Avielle Wolfe's avatar
    Add specs and permissions · c0998dc4
    Avielle Wolfe authored
    In order to get permissions working I had to pivot from using the hash
    returned by Vulnerability.counted_by_severity to using a
    VulnerabilitiesSummary pseudo-model and corresponding policy class.
    
    I'm not sure I love this solution, especially since I'm now using
    `public_send` to avoid having to hardcode each severity field in
    VulnerabilitiesSummaryType.
    c0998dc4
vulnerability.rb 3.51 KB