Sha256: 69fb544ae291cf0d0edffd2329cb09728cfa366e49c62ad43fcb48a9f052c8ae

Contents?: true

Size: 456 Bytes

Versions: 6

Compression:

Stored size: 456 Bytes

Contents

module Rails3::Assist::Orm
  module DataMapper
    include Rails3::Assist::Orm::Base

    def orm_name
      'DataMapper'
    end

    def orm_marker_name name, options=nil
      "#{orm_name}::Resource"
    end

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

    def field_name
      'property'
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rails3_artifactor-0.2.1 lib/rails3_artifactor/artifact/orm/data_mapper.rb
rails3_artifactor-0.1.5 lib/rails3_artifactor/artifact/orm/data_mapper.rb
rails3_artifactor-0.1.4 lib/rails3_artifactor/artifact/orm/data_mapper.rb
rails3_artifactor-0.1.3 lib/rails3_artifactor/artifact/orm/data_mapper.rb
rails3_artifactor-0.1.2 lib/rails3_artifactor/artifact/orm/data_mapper.rb
rails3_artifactor-0.1.1 lib/rails3_artifactor/artifact/orm/data_mapper.rb