Skip to content

Instantly share code, notes, and snippets.

@adamgamble
Created October 31, 2012 14:35
Show Gist options
  • Save adamgamble/3987372 to your computer and use it in GitHub Desktop.
Save adamgamble/3987372 to your computer and use it in GitHub Desktop.
region_hash = Hash.new {|h,k| Region.where(:title => "dummy_region").first }
region_hash["Af Region"] = Region.where(:title => "Africa").first
region_hash["Su Rugsapon"] = Region.where(:title => "Asia-pacific").first
region_hash["Mi Deets"] = Region.where(:title => "Canada").first
region_hash["To McAloon"] = Region.where(:title => "Europe").first
region_hash["Co Peavy"] = Region.where(:title => "Gulf-of-mexico").first
region_hash["Jo Limia"] = Region.where(:title => "Latin-america").first
region_hash["Mi Region"] = Region.where(:title => "Middle-east").first
region_hash["Ti Adams"] = Region.where(:title => "Russia-caspian").first
region_hash["Fa Salem"] = Region.where(:title => "Us-land").first
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment