Permalink
Browse files

Use expand_path to require environment in metal template

  • Loading branch information...
1 parent 284fd25 commit c52820ae1550c5e4d3b616c7354ea2c877c24e62 @josh josh committed Jan 22, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/lib/generators/rails/metal/templates/metal.rb
@@ -1,5 +1,5 @@
# Allow the metal piece to run in isolation
-require(File.dirname(__FILE__) + "/../../config/environment") unless defined?(Rails)
+require File.expand_path('../../../config/environment', __FILE__)
class <%= class_name %>
def self.call(env)

0 comments on commit c52820a

Please sign in to comment.