Sha256: 7034b8d3c522abd7241be16f2b12928da1988d991b77891fc7a4f45396b5d012
Contents?: true
Size: 895 Bytes
Versions: 2
Compression:
Stored size: 895 Bytes
Contents
module DockerContainerWizardStates class Preliminary < ApplicationRecord include Taxonomix self.table_name_prefix = 'docker_container_wizard_states_' belongs_to :wizard_state, :class_name => DockerContainerWizardState, :foreign_key => :docker_container_wizard_state_id belongs_to :compute_resource, :required => true def used_location_ids Location.joins(:taxable_taxonomies).where( 'taxable_taxonomies.taxable_type' => 'DockerContainerWizardStates::Preliminary', 'taxable_taxonomies.taxable_id' => id).pluck("#{Taxonomy.table_name}.id") end def used_organization_ids Organization.joins(:taxable_taxonomies).where( 'taxable_taxonomies.taxable_type' => 'DockerContainerWizardStates::Preliminary', 'taxable_taxonomies.taxable_id' => id).pluck("#{Taxonomy.table_name}.id") end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
foreman_docker-4.0.0 | app/models/docker_container_wizard_states/preliminary.rb |
foreman_docker-3.2.0 | app/models/docker_container_wizard_states/preliminary.rb |