Module: Rails3::Assist::Orm::None

Includes:
Base
Defined in:
lib/rails3_artifactor/artifact/orm/none.rb

Instance Method Summary collapse

Methods included from Base

included

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, options={}, &block        
  content = block ? yield : options[:content]
  simple_file(name, orm_marker_name(name, options)) { 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, options=nil
  name.to_s.camelize
end