Class: ROM::Generators::MapperGenerator
- Defined in:
- lib/generators/rom/mapper_generator.rb
Instance Method Summary collapse
Methods inherited from Base
base_name, default_adapter, default_gateway, namespace, source_root
Instance Method Details
#create_mapper_file ⇒ Object
6 7 8 9 10 11 |
# File 'lib/generators/rom/mapper_generator.rb', line 6 def create_mapper_file template( 'mapper.rb.erb', File.join('app', 'mappers', "#{file_name.singularize}_mapper.rb") ) end |