Permalink
Browse files

Even more compact.

  • Loading branch information...
1 parent cec58dd commit eb731fe147af7da77b1bcd7870e7fb7bac751719 Gabe Berke-Williams committed Feb 7, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 app.rb
View
4 app.rb
@@ -10,8 +10,8 @@
number_of_pictures_to_return = [corgis.count, count.to_i].min
random_corgis = corgis.shuffle![1..number_of_pictures_to_return]
- corgi_urls = random_corgis.map(&:url)
- corgi_urls.to_json
+
+ random_corgis.map(&:url).to_json
end
get '/random' do

0 comments on commit eb731fe

Please sign in to comment.