module Yao module Resources module NetworkAssociationable def self.included(base) base.friendly_attributes :network_id end def network @tenant ||= Yao::Network.find(network_id) end end end end