Sha256: 8be72b8b4a2ca8d18245be2d2ae1be2b145659d92a502850405c507209e24490

Contents?: true

Size: 357 Bytes

Versions: 1

Compression:

Stored size: 357 Bytes

Contents

module RailsAssist::Orm
  module MongoMapper
    include RailsAssist::Orm::Base

    def orm_name
      'MongoMapper'
    end

    def new_model_content name, options={}, &block
      content = block ? yield : options[:content]
      file_w_include(name, orm_marker_name(name, options)) { content }
    end

    def field_name
      'key'
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rails_artifactor-0.5.1 lib/rails_artifactor/artifact/orm/mongo_mapper.rb