Fix Ruby code issue -


i want fix ruby code, can't find error:

task :backup_prev_month       if defined?(rails)         require rails.root + '/config/boot'       else         require '../../../../config/boot'       end       require rails.root + '/config/environment'        tasklog.log("genesis.data_backup") |task_logger|         factory_backup.each |factory_data|           puts ">> backup previous month #{factory_data.to_s.pluralize.humanize} data..."           factory_data.factory_backup(:backup_prev_month(task_logger))         end       end     end 

i error stack:

syntax error, unexpected '(', expecting ')'           factory_data.factory_backup(:backup_prev_month(task_logger)) 

do know how can fix issue?


Comments

Popular posts from this blog

php - Embed BBCode within itself not working -

three.js - how to load gltf in three JS -

sql server - T-SQL: Access DB objects in same schema without qualifying? -