mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 00:42:04 +02:00
move constants to methods
This commit is contained in:
parent
f7a5e21db0
commit
6b6a41ae20
2 changed files with 15 additions and 6 deletions
|
@ -1,9 +1,13 @@
|
|||
FILE_NAME = './ettevotja_rekvisiidid_init.csv'.freeze
|
||||
|
||||
namespace :collect_csv_data do
|
||||
desc 'Import from csv registry business contact into BusinessRegistryContact model'
|
||||
|
||||
task business_contacts: :environment do
|
||||
ScanCsvRegistryBusinnesContactsJob.perform_later(FILE_NAME)
|
||||
ScanCsvRegistryBusinnesContactsJob.perform_later(filename)
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def filename
|
||||
'./ettevotja_rekvisiidid_init.csv'
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue