mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 07:16:49 +00:00
Add Model#attributes helper; make test attributes explicit
This commit is contained in:
@@ -135,7 +135,7 @@ module ActionController
|
||||
like = Like.new(id: 1, likeable: comment, time: 3.days.ago)
|
||||
|
||||
generate_cached_serializer(like)
|
||||
like.likable = comment2
|
||||
like.likeable = comment2
|
||||
like.time = Time.zone.now.to_s
|
||||
|
||||
render json: like
|
||||
|
||||
Reference in New Issue
Block a user