Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F461298
wrap_parameters.rb
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, May 18, 12:17 AM
Size
517 B
Mime Type
text/plain
Expires
Tue, May 20, 12:17 AM (21 h, 39 m)
Engine
blob
Format
Raw Data
Handle
220229
Attached To
rARCHIVING archiving
wrap_parameters.rb
View Options
# Be sure to restart your server when you modify this file.
# This file contains settings for ActionController::ParamsWrapper which
# is enabled by default.
# 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
]
if
respond_to?
(
:wrap_parameters
)
end
# To enable root element in JSON for ActiveRecord objects.
# ActiveSupport.on_load(:active_record) do
# self.include_root_in_json = true
# end
Event Timeline
Log In to Comment