Skip to content

Commit

Permalink
Specify which railties we want to require
Browse files Browse the repository at this point in the history
We are being explicit about which railties we want to require in our
application. This for be able to deploy our application succesfully.
  • Loading branch information
Ilyeo committed Jun 27, 2024
1 parent fa34402 commit b27e875
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,17 @@

require_relative 'boot'

require 'rails/all'
%w(
active_record/railtie
action_controller/railtie
action_view/railtie
action_mailer/railtie
).each do |railtie|
begin # rubocop:disable Style/RedundantBegin
require railtie
rescue LoadError
end
end

Bundler.require(*Rails.groups)

Expand Down

0 comments on commit b27e875

Please sign in to comment.