if current_user.requested_friends.exists?(params[:friend_id]) or current_user.pending_friends.exists?(params[:friend_id]) or current_user.friends.exists?(params[:friend_id])

Ruby If statement with many OR o...

by https://me.yahoo.com/a/hrHoLLx8w4O8IV2uFy1jAKJ7B702_qruWPI-, February 21, 2012 14:01, 8 refactorings, tagged with ruby, rack

I would like to refactor th...

55502f40dc8b7c769880b10874abc9d0 Talk
module Rack
  class SslBlock
    def initialize app, options = {}
...

Ruby Rack Middleware

by https://www.google.com/accounts/o8/id?id=AItOawkgnP7evEXOMIOnxq71Y4yEhDFN2oe3qi4, July 26, 2010 14:34, 2 refactorings, tagged with rack, middleware

any optimisations on this l...

55502f40dc8b7c769880b10874abc9d0 Talk
module Rack
    class Request
      def subdomains
...

Ruby Personalized URL (Purl) Sub...

by grayfm, January 11, 2010 22:25, 4 refactorings, tagged with url, rack, domain, sinatra, subdomain

So i need to define @purl_b...

41b76a0d9fd81133d545fb2b994013ab Talk
# This is what an application build with our framework would look like.
# Run with:
#   rackup app.ru
...

Ruby Very Simple Rack framework

by macournoyer, September 14, 2008 18:11, 1 refactoring, tagged with rack

I'll be presenting http://r...

Bfec5f7d1a4aaafc5a2451be8c42d26a Talk