Class: ROM::Generators::RelationGenerator

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

Instance Method Summary collapse

Methods inherited from Base

base_name, default_adapter, default_gateway, namespace, source_root

Instance Method Details

#create_relation_fileObject



21
22
23
24
25
26
# File 'lib/generators/rom/relation_generator.rb', line 21

def create_relation_file
  template(
    'relation.rb.erb',
    File.join('app', 'relations', "#{file_name}_relation.rb")
  )
end