Project

General

Profile

Download (300 Bytes) Statistics
| Branch: | Tag: | Revision:
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
(2-2/3)