Module: Rails3::Assist::Orm::None
- Includes:
- Base
- Defined in:
- lib/rails3_artifactor/artifact/orm/none.rb
Instance Method Summary collapse
- #new_model_content(name, options = {}, &block) ⇒ Object
- #orm_marker_name(name, options = nil) ⇒ Object
Methods included from Base
Instance Method Details
#new_model_content(name, options = {}, &block) ⇒ Object
11 12 13 14 |
# File 'lib/rails3_artifactor/artifact/orm/none.rb', line 11 def new_model_content name, ={}, &block content = block ? yield : [:content] simple_file(name, orm_marker_name(name, )) { content } end |
#orm_marker_name(name, options = nil) ⇒ Object
7 8 9 |
# File 'lib/rails3_artifactor/artifact/orm/none.rb', line 7 def orm_marker_name name, =nil name.to_s.camelize end |