Add Model#attributes helper; make test attributes explicit

This commit is contained in:
Benjamin Fleischer
2017-01-07 17:21:33 -06:00
parent 85dfef9072
commit d5babdd060
30 changed files with 524 additions and 308 deletions

View File

@@ -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