Skip to content

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

Merged
dblock merged 1 commit into
masterfrom
bugfix/autoload
Jan 16, 2020
Merged

Be sure classes/modules listed for autoload really exist#1976
dblock merged 1 commit into
masterfrom
bugfix/autoload

Conversation

@dnesteryuk

Copy link
Copy Markdown
Member

Fixes #1972

@dblock dblock left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Some naming suggestions.

Comment thread CHANGELOG.md Outdated

#### 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
Copy Markdown
Member

Choose a reason for hiding this comment

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

Be sure -> Ensure

Comment thread spec/spec_helper.rb Outdated
require 'bundler'
Bundler.require :default, :test

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

Copy link
Copy Markdown
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
Copy Markdown
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