test/dummy/app/models/api/posts_api.rb in api_versioning-0.0.7 vs test/dummy/app/models/api/posts_api.rb in api_versioning-0.0.8

- old
+ new

@@ -6,11 +6,11 @@ Jbuilder.encode do |json| json.api_version 'v1' - json.posts posts do |json, post| + json.posts posts do |post| timestamps json, post json.name post.name json.content post.content end @@ -22,10 +22,10 @@ Jbuilder.encode do |json| json.api_version 'v1_1' - json.posts posts do |json, post| + json.posts posts do |post| timestamps json, post json.name post.name json.teaser post.teaser json.content post.content end \ No newline at end of file