Class: UtopiaData::InstallGenerator

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

Instance Method Summary collapse

Instance Method Details

#copy_initializerObject



27
28
29
# File 'lib/generators/utopia_data/install/install_generator.rb', line 27

def copy_initializer
  template 'initializer.rb.erb', 'config/initializers/utopia_data.rb'
end

#setup_routesObject



31
32
33
# File 'lib/generators/utopia_data/install/install_generator.rb', line 31

def setup_routes
  route "UtopiaData.routes(self)"
end