ensl.org/config/initializers/wrap_parameters.rb

8 lines
165 B
Ruby
Raw Normal View History

ActiveSupport.on_load(:action_controller) do
wrap_parameters format: [:json]
end
ActiveSupport.on_load(:active_record) do
self.include_root_in_json = false
end