Skip to content

Commit

Permalink
Fix the application.rb generator
Browse files Browse the repository at this point in the history
  • Loading branch information
Carl Lerche committed Nov 25, 2009
1 parent 25b8e99 commit 02c3c9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion railties/lib/rails/generators/actions.rb
Expand Up @@ -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
Expand Down

0 comments on commit 02c3c9d

Please sign in to comment.