Mercurial > rsstweet
diff config/initializers/wrap_parameters.rb @ 185:f67f3ad50270
Update to latest rails and gems
author | nanaya <me@nanaya.pro> |
---|---|
date | Sun, 14 Jul 2019 15:38:04 +0900 |
parents | 257910c60eb3 |
children |
line wrap: on
line diff
--- a/config/initializers/wrap_parameters.rb Fri May 31 09:45:02 2019 +0900 +++ b/config/initializers/wrap_parameters.rb Sun Jul 14 15:38:04 2019 +0900 @@ -5,10 +5,5 @@ # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array. ActiveSupport.on_load(:action_controller) do - wrap_parameters :format => [:json] + wrap_parameters format: [:json] end - -# To enable root element in JSON for ActiveRecord objects. -# ActiveSupport.on_load(:active_record) do -# self.include_root_in_json = true -# end