Class: API::Entities::Tag

Inherits:
Grape::Entity
  • Object
show all
Includes:
RequestAwareEntity
Defined in:
lib/api/entities/tag.rb

Instance Method Summary collapse

Methods included from RequestAwareEntity

#request

Instance Method Details

#can_read_release?Boolean

Returns:

  • (Boolean)


25
26
27
# File 'lib/api/entities/tag.rb', line 25

def can_read_release?
  can?(options[:current_user], :read_release, options[:project])
end