mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 07:16:49 +00:00
Add a Responder to handle respond_with(resource)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user