• Sean McGivern's avatar
    Fix duplicate model find query in UploadsController · 56bc7fa4
    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.
    56bc7fa4
uploads_controller.rb 2.62 KB