aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/engine.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2012-05-22 16:33:08 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2012-05-22 16:52:39 -0700
commit8662722f4fea34259da4d37abd6c55ec717f9d2a (patch)
treeec236f76589d20ebe8a6cda41b3bce89d3e262be /railties/lib/rails/engine.rb
parent65d2a60a8ca006f1e1aa001b7ad43e2718f61260 (diff)
downloadrails-8662722f4fea34259da4d37abd6c55ec717f9d2a.tar.gz
rails-8662722f4fea34259da4d37abd6c55ec717f9d2a.tar.bz2
rails-8662722f4fea34259da4d37abd6c55ec717f9d2a.zip
initialize our instance variables
Diffstat (limited to 'railties/lib/rails/engine.rb')
-rw-r--r--railties/lib/rails/engine.rb16
1 files changed, 14 insertions, 2 deletions
diff --git a/railties/lib/rails/engine.rb b/railties/lib/rails/engine.rb
index 47856c87c6..33bd339b46 100644
--- a/railties/lib/rails/engine.rb
+++ b/railties/lib/rails/engine.rb
@@ -340,6 +340,18 @@ module Rails
autoload :Configuration, "rails/engine/configuration"
autoload :Railties, "rails/engine/railties"
+ def initialize
+ @_all_autoload_paths = nil
+ @_all_load_paths = nil
+ @app = nil
+ @config = nil
+ @env_config = nil
+ @helpers = nil
+ @railties = nil
+ @routes = nil
+ super
+ end
+
def load_generators(app=self)
initialize_generators
railties.all { |r| r.load_generators(app) }
@@ -615,14 +627,14 @@ module Rails
end
end
- protected
+ protected
def initialize_generators
require "rails/generators"
end
def routes?
- defined?(@routes) && @routes
+ @routes
end
def has_migrations?