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
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...
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...
# This is what an application build with our framework would look like. # Run with: # rackup app.ru ...
Ruby Very Simple Rack framework
I'll be presenting http://r...
I would like to refactor th...