# File lib/mongo_mapper/plugins/rails/active_record_association_adapter.rb, line 8
        def self.for_association(association)
          macro = case association
          when MongoMapper::Plugins::Associations::BelongsToAssociation
            :belongs_to
          when MongoMapper::Plugins::Associations::ManyAssociation
            :has_many
          when MongoMapper::Plugins::Associations::OneAssociation
            :has_one
          else
            raise "no #{name} for association of type #{association.class}"
          end

          new(association, macro)
        end