This feature causes more problems than it solves.
This commit is contained in:
Steve Klabnik
2013-04-03 17:24:08 -07:00
parent 8d7252019c
commit 9551a97464
7 changed files with 8 additions and 441 deletions

View File

@@ -66,9 +66,6 @@ module ActiveModel
self._embed = :objects
class_attribute :_root_embed
class_attribute :use_default_render_json
self.use_default_render_json = false
class_attribute :cache
class_attribute :perform_caching

View File

@@ -1,21 +0,0 @@
module ActiveModel
class Serializer
class Responder < ::ActionController::Responder #:nodoc:
protected
def display(resource, given_options = {})
if format != :json
super
else
json = Serializer.build_json(controller, resource, options)
if json
render given_options.merge(options).merge(:json => json)
else
super
end
end
end
end
end
end