Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F1299676
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
Wed, Nov 19, 12:10 AM
Size
517 B
Mime Type
text/plain
Expires
Fri, Nov 21, 12:10 AM (12 h, 30 m)
Engine
blob
Format
Raw Data
Handle
289931
Attached To
rWEBDNS WebDNS (edet4)
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