Skip to content

Instantly share code, notes, and snippets.

@samshull
Created September 29, 2011 18:48
Show Gist options
  • Save samshull/1251566 to your computer and use it in GitHub Desktop.
Save samshull/1251566 to your computer and use it in GitHub Desktop.
BenefitTemplate.where(:benefit_id => TERRORISM_ID).each { |bt| bt.update_attributes! :calculator_class => 'Terrorism' }
BenefitTemplate.where(:benefit_id => EMPLOYMENT_LAYOFF_ID).each { |bt| bt.update_attributes! :calculator_class => 'EmploymentLayoff' }
BenefitTemplate.where(:benefit_id => MEDICAL_EVACUATION_ID).each { |bt| bt.update_attributes! :calculator_class => 'MedicalEvacuationAndRepatriation' }
BenefitTemplate.where(:benefit_id => CANCEL_FOR_WORK_REASONS_ID).each { |bt| bt.update_attributes! :calculator_class => 'CancelForWorkReasons' }
BenefitTemplate.where(:benefit_id => HOME_COUNTRY_ID).each { |bt| bt.update_attributes! :calculator_class => 'HomeCountryCoverage' }
BenefitTemplate.where(:benefit_id => FINANCIAL_DEFAULT_ID).each { |bt| bt.update_attributes! :calculator_class => 'FinancialDefault' }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment