Skip to content

Instantly share code, notes, and snippets.

@Fluxx
Created August 18, 2011 21:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Fluxx/1155209 to your computer and use it in GitHub Desktop.
Save Fluxx/1155209 to your computer and use it in GitHub Desktop.
day = case self.type
when 'fast' then :fast_completion_day
when 'super_fast' then :super_fast_completion_day
when 'ludicrous' then :ludicrous_completion_day
else :budget_completion_day
end
self.value = Increment.first.max_hours * Incrementor.first.send(day)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment