Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix the application.rb generator

  • Loading branch information...
commit 02c3c9dfbcec05e3b0cecc062da8acd0cf7c53e0 1 parent 25b8e99
Carl Lerche authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  railties/lib/rails/generators/actions.rb
2  railties/lib/rails/generators/actions.rb
View
@@ -104,7 +104,7 @@ def add_source(source, options={})
# file in config/environments.
#
def environment(data=nil, options={}, &block)
- sentinel = "Rails::Initializer.run do |config|"
+ sentinel = /class [a-z_:]+ < Rails::Application/i
data = block.call if !data && block_given?
in_root do
Please sign in to comment.
Something went wrong with that request. Please try again.