Class: Mongoid::Generators::ModelGenerator
- Inherits:
-
Base
- Object
- Rails::Generators::NamedBase
- Base
- Mongoid::Generators::ModelGenerator
- Defined in:
- build/mongoid-7.3/lib/rails/generators/mongoid/model/model_generator.rb
Instance Method Summary collapse
Methods inherited from Base
Instance Method Details
#create_model_file ⇒ Object
19 20 21 |
# File 'build/mongoid-7.3/lib/rails/generators/mongoid/model/model_generator.rb', line 19 def create_model_file template "model.rb.tt", File.join("app/models", class_path, "#{file_name}.rb") end |