lib/generators/record_loader/record_loader_generator.rb
# Generally this will only run on generating the first loader
Generally this will only run on generating the first loader
Generally this will only run on generating the first loader
def initial_setup
    copy_file '../static_files/application_record_loader.rb',
              'lib/record_loader/application_record_loader.rb',
              skip: true
    copy_file '../static_files/record_loader.rake',
              'lib/tasks/record_loader.rake',
              skip: true
  end
def initial_setup copy_file '../static_files/application_record_loader.rb' , 'lib/record_loader/application_record_loader.rb' , skip : true copy_file '../static_files/record_loader.rake' , 'lib/tasks/record_loader.rake' , skip : true end
Generally this will only run on generating the first loader
Generally this will only run on generating the first loader
# Copy across the application_record_loader.rb unless it already exists # Copy across the record_loader.rake unless it already exists