• Sean McGivern's avatar
    Fix duplicate model find query in UploadsController · 4bef74cc
    Sean McGivern authored
    UploadsActions memoizes the result of `#find_model` in `#model`. That
    means that if we call `#find_model` first, we'll run the query twice. As
    `#model` is memoized, we don't need the `before_action` at all anyway.
    4bef74cc
uploads_controller.rb 2.62 KB