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_container_wizard_states/preliminary.rb
10 10

  
11 11
    def used_location_ids
12 12
      Location.joins(:taxable_taxonomies).where(
13
          'taxable_taxonomies.taxable_type' => 'DockerContainerWizardStates::Preliminary',
14
          'taxable_taxonomies.taxable_id' => id).pluck("#{Taxonomy.table_name}.id")
13
        'taxable_taxonomies.taxable_type' => 'DockerContainerWizardStates::Preliminary',
14
        'taxable_taxonomies.taxable_id' => id).pluck("#{Taxonomy.table_name}.id")
15 15
    end
16 16

  
17 17
    def used_organization_ids
18 18
      Organization.joins(:taxable_taxonomies).where(
19
          'taxable_taxonomies.taxable_type' => 'DockerContainerWizardStates::Preliminary',
20
          'taxable_taxonomies.taxable_id' => id).pluck("#{Taxonomy.table_name}.id")
19
        'taxable_taxonomies.taxable_type' => 'DockerContainerWizardStates::Preliminary',
20
        'taxable_taxonomies.taxable_id' => id).pluck("#{Taxonomy.table_name}.id")
21 21
    end
22 22
  end
23 23
end

Also available in: Unified diff