Class: ROM::Generators::MapperGenerator

Inherits:
Base
  • Object
show all
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_fileObject



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