File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -168,6 +168,9 @@ def process
168
168
# Observers are loaded after plugins in case Observers or observed models are modified by plugins.
169
169
load_observers
170
170
171
+ # load application classes
172
+ load_application_classes
173
+
171
174
# Flag initialized
172
175
Rails . initialized = true
173
176
end
@@ -330,6 +333,14 @@ def load_observers
330
333
end
331
334
end
332
335
336
+ def load_application_classes
337
+ require_dependency 'application'
338
+
339
+ Dir . glob ( 'app/{models,controllers,helpers}/*.rb' ) . each do |file |
340
+ require_dependency file
341
+ end
342
+ end
343
+
333
344
# For Ruby 1.8, this initialization sets $KCODE to 'u' to enable the
334
345
# multibyte safe operations. Plugin authors supporting other encodings
335
346
# should override this behaviour and set the relevant +default_charset+
You can’t perform that action at this time.
0 commit comments