mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
minor pass to generated code in application.rb related to :defaults
This commit is contained in:
@@ -22,7 +22,7 @@ module <%= app_const_base %>
|
||||
# -- 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 @@ module <%= app_const_base %>
|
||||
# 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 -%>
|
||||
|
||||
Reference in New Issue
Block a user