• Sean McGivern's avatar
    Only inject gon variables and perform redirects for HTML · 7f1d9323
    Sean McGivern authored
    Instead of excluding XHRs for these actions, we only want to perform
    them when we're serving an HTML page. If we're serving an image or an
    Atom feed, they are mostly useless:
    
    1. Gon variables can't be used by an image.
    2. Redirects won't be seen if an image is embedded in another page.
    7f1d9323
user_avatar_spec.rb 1.14 KB