diff options
author | Colin Bartlett <colin@colinabartlett.com> | 2013-05-16 00:49:17 -0400 |
---|---|---|
committer | Colin Bartlett <colin@colinabartlett.com> | 2013-05-16 00:49:17 -0400 |
commit | 46faadfacc70254ebfe693c662b6883556147dac (patch) | |
tree | ceaba40a3e6c63e2c00dd5c6edf73888c32673a7 /railties | |
parent | 99860582b2b1c0fc42bf84c52aac57b243d42678 (diff) | |
download | rails-46faadfacc70254ebfe693c662b6883556147dac.tar.gz rails-46faadfacc70254ebfe693c662b6883556147dac.tar.bz2 rails-46faadfacc70254ebfe693c662b6883556147dac.zip |
Remove trailing line break
If you generate a fresh app without ActiverRecord, this template
exhibited a lone trailing line break. My watchful pre-commit hook
told me about it so I've fixed it here.
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/config/initializers/wrap_parameters.rb.tt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/config/initializers/wrap_parameters.rb.tt b/railties/lib/rails/generators/rails/app/templates/config/initializers/wrap_parameters.rb.tt index 4f1d56cd2f..f2110c2c70 100644 --- a/railties/lib/rails/generators/rails/app/templates/config/initializers/wrap_parameters.rb.tt +++ b/railties/lib/rails/generators/rails/app/templates/config/initializers/wrap_parameters.rb.tt @@ -7,8 +7,8 @@ ActiveSupport.on_load(:action_controller) do wrap_parameters format: [:json] if respond_to?(:wrap_parameters) end - <%- unless options.skip_active_record? -%> + # To enable root element in JSON for ActiveRecord objects. # ActiveSupport.on_load(:active_record) do # self.include_root_in_json = true |