Skip to content

Instantly share code, notes, and snippets.

@absyah
Created March 26, 2021 07:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save absyah/a000b1dc8848e76a3381145c34dfeb91 to your computer and use it in GitHub Desktop.
Save absyah/a000b1dc8848e76a3381145c34dfeb91 to your computer and use it in GitHub Desktop.
update
require "rails"
%w(
active_record/railtie
action_controller/railtie
action_view/railtie
action_mailer/railtie
active_job/railtie
action_cable/engine
rails/test_unit/railtie
sprockets/railtie
).each do |railtie|
begin
require railtie
rescue LoadError
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment