Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F401898
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
Thu, Feb 20, 4:05 PM
Size
517 B
Mime Type
text/plain
Expires
Sat, Feb 22, 4:05 PM (21 h, 22 m)
Engine
blob
Format
Raw Data
Handle
190761
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