Project

General

Profile

Revision 7ff105d1

Added by David Davis almost 7 years ago

Fixes #12681 - Support rubocop 0.35.1 by fixing broken rules

View differences:

app/models/docker_registry.rb
15 15

  
16 16
  def used_location_ids
17 17
    Location.joins(:taxable_taxonomies).where(
18
        'taxable_taxonomies.taxable_type' => 'DockerRegistry',
19
        'taxable_taxonomies.taxable_id' => id).pluck("#{Taxonomy.table_name}.id")
18
      'taxable_taxonomies.taxable_type' => 'DockerRegistry',
19
      'taxable_taxonomies.taxable_id' => id).pluck("#{Taxonomy.table_name}.id")
20 20
  end
21 21

  
22 22
  def used_organization_ids
23 23
    Organization.joins(:taxable_taxonomies).where(
24
        'taxable_taxonomies.taxable_type' => 'DockerRegistry',
25
        'taxable_taxonomies.taxable_id' => id).pluck("#{Taxonomy.table_name}.id")
24
      'taxable_taxonomies.taxable_type' => 'DockerRegistry',
25
      'taxable_taxonomies.taxable_id' => id).pluck("#{Taxonomy.table_name}.id")
26 26
  end
27 27

  
28 28
  def prefixed_url(image_name)

Also available in: Unified diff