Skip to content

Commit f98ea2c

Browse files
Annihdm1try
authored andcommitted
Require main active_support lib before any of its extension definitions
It seems to be the recommended way with active_support. See https://guides.rubyonrails.org/active_support_core_extensions.html#cherry-picking-a-definition Fix #2205. Signed-off-by: Baptiste Courtois <[email protected]>
1 parent 783fa59 commit f98ea2c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
#### Fixes
99

10+
* [#2206](https://github.com/ruby-grape/grape/pull/2206): Require main active_support lib before any of its extension definitions - [@annih](https://github.com/Annih).
1011
* [#2193](https://github.com/ruby-grape/grape/pull/2193): Fixed the broken ruby-head NoMethodError spec - [@Jack12816](https://github.com/Jack12816).
1112
* [#2192](https://github.com/ruby-grape/grape/pull/2192): Memoize the result of Grape::Middleware::Base#response - [@Jack12816](https://github.com/Jack12816).
1213
* [#2200](https://github.com/ruby-grape/grape/pull/2200): Add validators module to all validators - [@ericproulx](https://github.com/ericproulx).

lib/grape.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
require 'rack/auth/basic'
88
require 'rack/auth/digest/md5'
99
require 'set'
10+
require 'active_support'
1011
require 'active_support/version'
1112
require 'active_support/core_ext/hash/indifferent_access'
1213
require 'active_support/core_ext/object/blank'

0 commit comments

Comments
 (0)