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)


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

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