1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

require the constants we use. ensure that root always returns a Pathname

This commit is contained in:
Aaron Patterson 2012-05-23 16:12:51 -07:00
parent 4001835db0
commit d77b576c03

View file

@ -1,4 +1,5 @@
require 'rails/railtie/configuration'
require 'pathname'
module Rails
class Engine
@ -8,7 +9,7 @@ module Rails
def initialize(root=nil)
super()
@root = root
@root = root && Pathname.new(root)
@generators = app_generators.dup
end