Guest User

Untitled

a guest
Jan 13th, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. diff -U 0 -r rails-3.1.0.rc3/config/initializers/wrap_parameters.rb rails-3.1.1/config/initializers/wrap_parameters.rb
  2. --- rails-3.1.0.rc3/config/initializers/wrap_parameters.rb 2011-10-07 12:01:17.000000000 -0400
  3. +++ rails-3.1.1/config/initializers/wrap_parameters.rb 2011-10-07 12:59:13.000000000 -0400
  4. @@ -7 +7,3 @@
  5. -ActionController::Base.wrap_parameters format: [:json]
  6. +ActiveSupport.on_load(:action_controller) do
  7. + wrap_parameters format: [:json]
  8. +end
  9. @@ -10,2 +12,2 @@
  10. -if defined?(ActiveRecord)
  11. - ActiveRecord::Base.include_root_in_json = false
  12. +ActiveSupport.on_load(:active_record) do
  13. + self.include_root_in_json = false
Add Comment
Please, Sign In to add comment