Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Be sure classes/modules listed for autoload really exist #1976

Merged
merged 1 commit into from
Jan 16, 2020

Conversation

dnesteryuk
Copy link
Member

Fixes #1972

Copy link
Member

@dblock dblock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some naming suggestions.

CHANGELOG.md Outdated
@@ -6,6 +6,7 @@

#### Fixes

* [#1976](https://github.com/ruby-grape/grape/pull/1976): Be sure classes/modules listed for autoload really exist - [@dnesteryuk](https://github.com/dnesteryuk).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Be sure -> Ensure

@@ -10,6 +10,26 @@
require 'bundler'
Bundler.require :default, :test

# Grape uses autoload https://api.rubyonrails.org/classes/ActiveSupport/Autoload.html.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's put this in https://github.com/ruby-grape/grape/tree/master/spec/support, call it eager_load.rb and call this function eager_load! to follow the Ruby pattern.

@dnesteryuk
Copy link
Member Author

@dblock thanks for the review, please, have a look again 😉

@dblock dblock merged commit cacf82e into master Jan 16, 2020
@dnesteryuk dnesteryuk deleted the bugfix/autoload branch January 16, 2020 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cannot load such file -- grape/extensions/deep_hash_with_indifferent_access after update to 1.3.0
2 participants