File tree Expand file tree Collapse file tree 2 files changed +14
-9
lines changed Expand file tree Collapse file tree 2 files changed +14
-9
lines changed Original file line number Diff line number Diff line change @@ -78,10 +78,6 @@ def require_environment! #:nodoc:
78
78
require environment if environment
79
79
end
80
80
81
- def eager_load! #:nodoc:
82
- railties . all ( &:eager_load! )
83
- super
84
- end
85
81
86
82
def reload_routes!
87
83
routes_reloader . reload!
@@ -100,22 +96,18 @@ def initialize!
100
96
101
97
def load_tasks ( app = self )
102
98
initialize_tasks
103
- railties . all { |r | r . load_tasks ( app ) }
104
99
super
105
100
self
106
101
end
107
102
108
103
def load_generators ( app = self )
109
104
initialize_generators
110
- railties . all { |r | r . load_generators ( app ) }
111
-
112
105
super
113
106
self
114
107
end
115
108
116
109
def load_console ( app = self )
117
110
initialize_console
118
- railties . all { |r | r . load_console ( app ) }
119
111
super
120
112
self
121
113
end
Original file line number Diff line number Diff line change @@ -387,12 +387,25 @@ def find(path)
387
387
delegate :middleware , :root , :paths , :to => :config
388
388
delegate :engine_name , :isolated? , :to => "self.class"
389
389
390
- def load_tasks ( *)
390
+ def load_tasks ( app = self )
391
+ railties . all { |r | r . load_tasks ( app ) }
391
392
super
392
393
paths [ "lib/tasks" ] . existent . sort . each { |ext | load ( ext ) }
393
394
end
395
+
396
+ def load_generators ( app = self )
397
+ railties . all { |r | r . load_generators ( app ) }
398
+ super
399
+ end
394
400
401
+ def load_console ( app = self )
402
+ railties . all { |r | r . load_console ( app ) }
403
+ super
404
+ end
405
+
395
406
def eager_load!
407
+ railties . all ( &:eager_load! )
408
+
396
409
config . eager_load_paths . each do |load_path |
397
410
matcher = /\A #{ Regexp . escape ( load_path ) } \/ (.*)\. rb\Z /
398
411
Dir . glob ( "#{ load_path } /**/*.rb" ) . sort . each do |file |
You can’t perform that action at this time.
0 commit comments