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