Skip to content
Browse files

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

  • Loading branch information...
1 parent 4001835 commit d77b576c0330d8b1c6189cb94814382ce32baab6 @tenderlove tenderlove committed May 23, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 railties/lib/rails/engine/configuration.rb
View
3 railties/lib/rails/engine/configuration.rb
@@ -1,4 +1,5 @@
require 'rails/railtie/configuration'
+require 'pathname'
module Rails
class Engine
@@ -8,7 +9,7 @@ class Configuration < ::Rails::Railtie::Configuration
def initialize(root=nil)
super()
- @root = root
+ @root = root && Pathname.new(root)
@generators = app_generators.dup
end

0 comments on commit d77b576

Please sign in to comment.
Something went wrong with that request. Please try again.