Skip to content

Commit 5f9bd7d

Browse files
committed
Correct autoloading in production environment
1 parent 74efcea commit 5f9bd7d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

rails6/en/chapter04-athentification.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ There you go. In order to load the file into our application, you must specify t
136136
module MarketPlaceApi
137137
class Application < Rails::Application
138138
# ...
139-
config.autoload_paths << Rails.root.join('lib')
139+
config.eager_load_paths << Rails.root.join('lib')
140140
end
141141
end
142142
----

rails6/fr/chapter04-athentification.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ Et voilà. Afin de charger le fichier dans notre application, il faut spécifier
136136
module MarketPlaceApi
137137
class Application < Rails::Application
138138
# ...
139-
config.autoload_paths << Rails.root.join('lib')
139+
config.eager_load_paths << Rails.root.join('lib')
140140
end
141141
end
142142
----

0 commit comments

Comments
 (0)