BigW Consortium Gitlab

Commit 6186ac2c by Grzegorz Bizon

Expose created_at and updated_at in pipeline entity

parent 77482829
......@@ -64,6 +64,8 @@ class PipelineEntity < Grape::Entity
pipeline.project, pipeline.id)
end
expose :created_at, :updated_at
def created_exposure?
!incremental? || created?
end
......
......@@ -9,10 +9,6 @@ module RequestAwareEntity
@options.fetch(:request)
end
def current_user
@options.fetch(:current_user)
end
def can?(object, action, subject)
Ability.allowed?(object, action, subject)
end
......
Markdown is supported
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