Commit e4d2f997 authored by Tomasz Maczukin's avatar Tomasz Maczukin
Browse files

Change `last_contact` to `contacted_at`

parent 7ea60c85
...@@ -116,7 +116,7 @@ Example response: ...@@ -116,7 +116,7 @@ Example response:
"description": "test-1-20150125", "description": "test-1-20150125",
"id": 6, "id": 6,
"is_shared": false, "is_shared": false,
"last_contact": "2016-01-25T16:39:48.066Z", "contacted_at": "2016-01-25T16:39:48.066Z",
"name": null, "name": null,
"platform": null, "platform": null,
"projects": [ "projects": [
...@@ -166,7 +166,7 @@ Example response: ...@@ -166,7 +166,7 @@ Example response:
"description": "test-1-20150125-test", "description": "test-1-20150125-test",
"id": 6, "id": 6,
"is_shared": false, "is_shared": false,
"last_contact": "2016-01-25T16:39:48.066Z", "contacted_at": "2016-01-25T16:39:48.066Z",
"name": null, "name": null,
"platform": null, "platform": null,
"projects": [ "projects": [
......
...@@ -380,7 +380,7 @@ class Runner < Grape::Entity ...@@ -380,7 +380,7 @@ class Runner < Grape::Entity
class RunnerDetails < Runner class RunnerDetails < Runner
expose :tag_list expose :tag_list
expose :version, :revision, :platform, :architecture expose :version, :revision, :platform, :architecture
expose :contacted_at, as: :last_contact expose :contacted_at
expose :token, if: lambda { |runner, options| options[:current_user].is_admin? || !runner.is_shared? } expose :token, if: lambda { |runner, options| options[:current_user].is_admin? || !runner.is_shared? }
expose :projects, with: Entities::ForkedFromProject do |runner, options| expose :projects, with: Entities::ForkedFromProject do |runner, options|
if options[:current_user].is_admin? if options[:current_user].is_admin?
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment