Module: Rails3::Assist::Orm::MongoMapper
- Includes:
- Base
- Defined in:
- lib/rails3_artifactor/artifact/orm/mongo_mapper.rb
Instance Method Summary collapse
Methods included from Base
Instance Method Details
#field_name ⇒ Object
14 15 16 |
# File 'lib/rails3_artifactor/artifact/orm/mongo_mapper.rb', line 14 def field_name 'key' end |
#new_model_content(name, options = {}, &block) ⇒ Object
9 10 11 12 |
# File 'lib/rails3_artifactor/artifact/orm/mongo_mapper.rb', line 9 def new_model_content name, ={}, &block content = block ? yield : [:content] file_w_include(name, orm_marker_name(name, )) { content } end |
#orm_name ⇒ Object
5 6 7 |
# File 'lib/rails3_artifactor/artifact/orm/mongo_mapper.rb', line 5 def orm_name 'MongoMapper' end |