Permalink
Browse files

minor pass to generated code in application.rb related to :defaults

  • Loading branch information...
fxn committed Jul 16, 2010
1 parent 04ef434 commit ef165b355d461dea476875c2f1b7bac18eee3046
Showing with 3 additions and 3 deletions.
  1. +3 −3 railties/lib/rails/generators/rails/app/templates/config/application.rb
@@ -22,7 +22,7 @@ class Application < Rails::Application
# -- all .rb files in that directory are automatically loaded.
# Custom directories with classes and modules you want to be autoloadable.
- # config.autoload_paths += %W( #{config.root}/extras )
+ # config.autoload_paths += %W(#{config.root}/extras)
# Only load the plugins named here, in the order given (default is alphabetical).
# :all can be used as a placeholder for all plugins not explicitly named.
@@ -39,9 +39,9 @@ class Application < Rails::Application
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
# config.i18n.default_locale = :de
- # Add your default javascripts
+ # JavaScript files you want as :defaults (application.js is always included).
<% if options[:skip_prototype] -%>
- config.action_view.javascript_expansions[:defaults] = []
+ config.action_view.javascript_expansions[:defaults] = %w()
<% else -%>
# config.action_view.javascript_expansions[:defaults] = %w(jquery rails)
<% end -%>

0 comments on commit ef165b3

Please sign in to comment.