Mercurial > zeropaste
diff config/initializers/wrap_parameters.rb @ 467:fd3078b4d355
Update to latest rails
author | nanaya <me@nanaya.pro> |
---|---|
date | Tue, 22 Oct 2019 16:17:30 +0900 |
parents | 68eb23b52864 |
children | d2ef59c9a4b4 |
line wrap: on
line diff
--- a/config/initializers/wrap_parameters.rb Fri May 31 09:10:37 2019 +0900 +++ b/config/initializers/wrap_parameters.rb Tue Oct 22 16:17:30 2019 +0900 @@ -5,7 +5,7 @@ # 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.