Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit ef165b355d461dea476875c2f1b7bac18eee3046 1 parent 04ef434
@fxn fxn authored
View
6 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 -%>
Please sign in to comment.
Something went wrong with that request. Please try again.