• Heinrich Lee Yu's avatar
    Fix incorrect rendering of flash messages · 1453d309
    Heinrich Lee Yu authored
    Flash messages are not cleared unless they are accessed in
    a request. Our JSON requests don't read the flash causing these
    messages to persist to unrelated requests.
    
    We fix this by only setting the flash message for non-AJAX
    HTML requests.
    1453d309
milestones_controller_spec.rb 13.9 KB