module InheritedResources::ClassMethods
def singleton_belongs_to(*symbols, &block)
A quick method to declare singleton belongs to.
def singleton_belongs_to(*symbols, &block) options = symbols.extract_options! options.merge!(:singleton => true) belongs_to(*symbols << options, &block) end