Add a Responder to handle respond_with(resource)

This commit is contained in:
Michael Rykov
2013-03-13 16:45:23 -07:00
parent ad886495a1
commit 37b0690fb8
8 changed files with 463 additions and 21 deletions

View File

@@ -66,6 +66,9 @@ module ActiveModel
self._embed = :objects
class_attribute :_root_embed
class_attribute :use_default_render_json
self.use_default_render_json = false
class << self
# Define attributes to be used in the serialization.
def attributes(*attrs)