Class: ROM::Generators::RepositoryGenerator

Inherits:
Base
  • Object
show all
Defined in:
lib/generators/rom/repository_generator.rb

Instance Method Summary collapse

Methods inherited from Base

base_name, default_adapter, default_gateway, namespace, source_root

Instance Method Details

#create_repository_fileObject



12
13
14
15
16
17
# File 'lib/generators/rom/repository_generator.rb', line 12

def create_repository_file
  template(
    'repository.rb.erb',
    File.join('app', 'repositories', "#{repository_name}_repository.rb")
  )
end