Skip to content

Instantly share code, notes, and snippets.

@tubbo
Created December 22, 2011 21:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tubbo/1511874 to your computer and use it in GitHub Desktop.
Save tubbo/1511874 to your computer and use it in GitHub Desktop.
more efficient way to do this?
@company.company_type = case params[:plantype]
when 'executive' then '2'
when 'business' then '3'
else
'1'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment