We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 677df61 commit a7039dfCopy full SHA for a7039df
railties/lib/rails/railtie.rb
@@ -173,11 +173,11 @@ def config
173
def eager_load!
174
end
175
176
- def load_console(app)
+ def load_console(app=self)
177
self.class.console.each { |block| block.call(app) }
178
179
180
- def load_tasks(app)
+ def load_tasks(app=self)
181
extend Rake::DSL if defined? Rake::DSL
182
self.class.rake_tasks.each { |block| block.call(app) }
183
@@ -189,7 +189,7 @@ def load_tasks(app)
189
190
191
192
- def load_generators(app)
+ def load_generators(app=self)
193
self.class.generators.each { |block| block.call(app) }
194
195
0 commit comments