Skip to content

Commit

Permalink
Fix eager loading due to ServeStream rename
Browse files Browse the repository at this point in the history
ServeFile was renamed to ServeStream in ruby-grape#1520. Calling Grape.eager_load!
would fail with:

```
uninitialized constant Grape::ServeFile (NameError)
```
  • Loading branch information
stanhu committed Jun 12, 2020
1 parent 9198f7e commit 0e079df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/grape/eager_load.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@
Grape::DSL.eager_load!
Grape::API.eager_load!
Grape::Presenters.eager_load!
Grape::ServeFile.eager_load!
Grape::ServeStream.eager_load!
Rack::Head # AutoLoads the Rack::Head

0 comments on commit 0e079df

Please sign in to comment.