Class: UtopiaData::ResourceGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Defined in:
lib/generators/utopia_data/resource/resource_generator.rb

Instance Method Summary collapse

Instance Method Details

#create_initializer_fileObject



26
27
28
# File 'lib/generators/utopia_data/resource/resource_generator.rb', line 26

def create_initializer_file
  template "resource.rb",  "app/resource/#{file_path.gsub('/', '_')}.rb"
end