Mercurial > rsstweet
comparison config/initializers/wrap_parameters.rb @ 260:e2150dce4e90
Rubocop (rails) time
author | nanaya <me@nanaya.net> |
---|---|
date | Sun, 15 Dec 2024 22:59:09 +0900 |
parents | f67f3ad50270 |
children |
comparison
equal
deleted
inserted
replaced
259:8b75d00c77ba | 260:e2150dce4e90 |
---|---|
3 # This file contains settings for ActionController::ParamsWrapper which | 3 # This file contains settings for ActionController::ParamsWrapper which |
4 # is enabled by default. | 4 # is enabled by default. |
5 | 5 |
6 # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array. | 6 # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array. |
7 ActiveSupport.on_load(:action_controller) do | 7 ActiveSupport.on_load(:action_controller) do |
8 wrap_parameters format: [:json] | 8 wrap_parameters format: [ :json ] |
9 end | 9 end |