File tree Expand file tree Collapse file tree 3 files changed +14
-1
lines changed
Expand file tree Collapse file tree 3 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 99
1010#### Fixes
1111
12+ * [ #2633 ] ( https://github.com/ruby-grape/grape/pull/2633 ) : Fix cascade reading - [ @ericproulx ] ( https://github.com/ericproulx ) .
1213* Your contribution here.
1314
1415### 3.0.1 (2025-11-24)
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ def mounted(&block)
1616 end
1717
1818 def cascade ( value = nil )
19- return inheritable_setting . namespace_inheritable . key? ( :cascade ) ? !inheritable_setting . namespace_inheritable ( :cascade ) . nil? : true if value . nil?
19+ return inheritable_setting . namespace_inheritable . key? ( :cascade ) ? !inheritable_setting . namespace_inheritable [ :cascade ] . nil? : true if value . nil?
2020
2121 inheritable_setting . namespace_inheritable [ :cascade ] = value
2222 end
Original file line number Diff line number Diff line change @@ -4715,4 +4715,16 @@ def uniqe_id_route
47154715 expect { get '/' } . to raise_error ( Rack ::Lint ::LintError )
47164716 end
47174717 end
4718+
4719+ describe '.cascade' do
4720+ subject { api . cascade }
4721+
4722+ let ( :api ) do
4723+ Class . new ( Grape ::API ) do
4724+ cascade true
4725+ end
4726+ end
4727+
4728+ it { is_expected . to be ( true ) }
4729+ end
47184730end
You can’t perform that action at this time.
0 commit comments