Skip to content

Instantly share code, notes, and snippets.

@renaehodgkins
Created October 22, 2012 18:55
Show Gist options
  • Save renaehodgkins/3933376 to your computer and use it in GitHub Desktop.
Save renaehodgkins/3933376 to your computer and use it in GitHub Desktop.
task :reverse_score => :environment do
Observation.where(:current_score && !:option_value).each do |treatment|
puts("ZOMG heart: #{:current_score} and stuff #{:current_score + 1}") if assessment.heart?
puts("ZOMG start: #{:current_score} and stuff #{:current_score + 5}") if assessment.start?
# self.option_value = observation.current_score + 1 if assessment.heart?
# self.option_value = observation.current_score + 5 if assessment.start?
# end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment