diff options
author | Carl Lerche <carllerche@mac.com> | 2009-11-25 14:52:56 -0800 |
---|---|---|
committer | Carl Lerche <carllerche@mac.com> | 2009-11-25 14:52:56 -0800 |
commit | 02c3c9dfbcec05e3b0cecc062da8acd0cf7c53e0 (patch) | |
tree | 724226a073a5f454fc8c2d28ff8bc85bd031fa40 /railties/lib/rails/generators/actions.rb | |
parent | 25b8e996bd29384d37df9939cd651b550e709ee7 (diff) | |
download | rails-02c3c9dfbcec05e3b0cecc062da8acd0cf7c53e0.tar.gz rails-02c3c9dfbcec05e3b0cecc062da8acd0cf7c53e0.tar.bz2 rails-02c3c9dfbcec05e3b0cecc062da8acd0cf7c53e0.zip |
Fix the application.rb generator
Diffstat (limited to 'railties/lib/rails/generators/actions.rb')
-rw-r--r-- | railties/lib/rails/generators/actions.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/actions.rb b/railties/lib/rails/generators/actions.rb index 8677bf283b..57abc151d2 100644 --- a/railties/lib/rails/generators/actions.rb +++ b/railties/lib/rails/generators/actions.rb @@ -104,7 +104,7 @@ module Rails # 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 |