Class: DataMapper::Generators::ModelGenerator
- Inherits:
-
Base
- Object
- Rails::Generators::NamedBase
- Base
- DataMapper::Generators::ModelGenerator
- Defined in:
- lib/generators/data_mapper/model/model_generator.rb
Instance Method Summary collapse
Methods inherited from Base
Instance Method Details
#create_model_file ⇒ Object
14 15 16 |
# File 'lib/generators/data_mapper/model/model_generator.rb', line 14 def create_model_file template 'model.rb', File.join('app/models', class_path, "#{file_name}.rb") end |