class Elabs::Generators::InstallGenerator

Public Instance Methods

copy_files() click to toggle source
# File lib/generators/elabs/install_generator.rb, line 19
def copy_files
  template 'elabs.rb', 'config/initializers/elabs.rb'
  template 'user_model.rb', 'app/models/user.rb'
  template 'fast_gettext.rb', 'config/initializers/fast_gettext.rb'
  directory 'locale'
end
set_source_paths() click to toggle source
# File lib/generators/elabs/install_generator.rb, line 10
def set_source_paths
  @source_paths = [
    File.expand_path('../templates', __dir__),
    File.expand_path('../../..', __dir__)
  ]
end