Class: Mongoid::Generators::ModelGenerator
Overview
:nodoc:
Instance Method Summary collapse
Methods inherited from Base
#module_namespacing, source_root
Instance Method Details
#create_model_file ⇒ Object
17 18 19 |
# File 'lib/rails/generators/mongoid/model/model_generator.rb', line 17 def create_model_file template "model.rb.tt", File.join("app/models", class_path, "#{file_name}.rb") end |