Skip to content

Latest commit

 

History

History
92 lines (26 loc) · 934 Bytes

ModelGenerator.rst

File metadata and controls

92 lines (26 loc) · 934 Bytes

ModelGenerator

nodoc

Constants

Files

Methods

#create_model_file

ruby

def create_model_file

template 'model.erb', File.join('app/models', "#{singular_name}.rb")

end

.source_root

ruby

def self.source_root
@_neo4j_source_root ||= File.expand_path(File.join(File.dirname(__FILE__),

'neo4j', generator_name, 'templates'))

end