Sha256: 0f36c2f738fc21872267c8d63ca5cf370fb69dc559713c29a5679a6dbda2f94e

Contents?: true

Size: 313 Bytes

Versions: 5

Compression:

Stored size: 313 Bytes

Contents

module Host
  module Hostmix

      def has_many_hosts(options = {})
        has_many :hosts, {:class_name => "Host::Managed"}.merge(options)
      end

      def belongs_to_host(options = {})
        belongs_to :host, {:class_name => "Host::Managed", :foreign_key => :host_id}.merge(options)
      end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
foreman_discovery-1.0.0 test/foreman_app/app/models/host/hostmix.rb
foreman_discovery-1.0.0.rc4 test/foreman_app/app/models/host/hostmix.rb
foreman_discovery-1.0.0.rc3 test/foreman_app/app/models/host/hostmix.rb
foreman_discovery-1.0.0.rc2 test/foreman_app/app/models/host/hostmix.rb
foreman_discovery-1.0.0.rc1 test/foreman_app/app/models/host/hostmix.rb