app/models/model.rb
def has_many(*names)
      if names.last.is_a?(Hash)
        super
      else
        names.each {|name| super name }
      end
    end
##
# If the names are an array of symbols make a has_many out of each
# If a name has options then just make the call to Mongoid#has_many
#
If the names are an array of symbols make a has_many out of each
If a name has options then just make the call to Mongoid#has_many
If the names are an array of symbols make a has_many out of each If a name has options then just make the call to Mongoid#has_many
def has_many(*names)
      if names.last.is_a?(Hash)
        super
      else
        names.each {|name| super name }
      end
    end
def has_many ( * names ) if names . last . is_a? ( Hash ) super else names . each { | name | super name } end end
If the names are an array of symbols make a has_many out of each
If a name has options then just make the call to Mongoid#has_many
If the names are an array of symbols make a has_many out of each If a name has options then just make the call to Mongoid#has_many
names