Skip to content

Commit 45d49d9

Browse files
committed
Change rambulance to yasslab/rambulance to mitigate the nameerror issue yasslab/rambulance@f422d93
1 parent e100021 commit 45d49d9

File tree

3 files changed

+13
-11
lines changed

3 files changed

+13
-11
lines changed

Gemfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ gem 'uglifier'
2121

2222
# For handling error
2323
# https://github.com/yuki24/rambulance
24-
gem 'rambulance'
24+
# Using patch gem due to NameError: uninitialized constant ApplicationHelper
25+
# https://github.com/coderdojo-japan/coderdojo.jp/pull/1631#issuecomment-2424826474
26+
gem 'rambulance', git: 'https://github.com/yasslab/rambulance'
2527

2628
# For redirection
2729
gem 'rack-host-redirect'

Gemfile.lock

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
GIT
2+
remote: https://github.com/yasslab/rambulance
3+
revision: f422d939d2fb415a920b1816b6026da522e96e5e
4+
specs:
5+
rambulance (3.3.0)
6+
actionpack
7+
activesupport
8+
railties
9+
110
GEM
211
remote: https://rubygems.org/
312
specs:
@@ -361,10 +370,6 @@ GEM
361370
zeitwerk (~> 2.5)
362371
rainbow (3.1.1)
363372
rake (13.2.1)
364-
rambulance (3.3.0)
365-
actionpack
366-
activesupport
367-
railties
368373
rb-fsevent (0.11.2)
369374
rb-inotify (0.11.1)
370375
ffi (~> 1.0)
@@ -537,7 +542,7 @@ DEPENDENCIES
537542
rails-controller-testing
538543
rails-html-sanitizer (~> 1.4.4)
539544
rake
540-
rambulance
545+
rambulance!
541546
rspec-rails (~> 4.0)
542547
rspec-retry
543548
rss

config/application.rb

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@
22

33
require "rails/all"
44

5-
# FIXME: The process of requiring the exceptions_app from rambulance is being loaded at an unexpected timing? So we're requiring it manually.
6-
# Problematic code section: https://github.com/yuki24/rambulance/blob/v3.0.0/lib/rambulance/railtie.rb#L5
7-
# Ref: https://github.com/yuki24/rambulance/issues/67#issuecomment-1945292833
8-
require 'rambulance/exceptions_app'
9-
105
# Require the gems listed in Gemfile, including any gems
116
# you've limited to :test, :development, or :production.
127
Bundler.require(*Rails.groups)

0 commit comments

Comments
 (0)