I hereby claim:
- I am codebeige on github.
- I am codebeige (https://keybase.io/codebeige) on keybase.
- I have a public key whose fingerprint is C5EA C03B 1066 9784 7E8C 122C 557D 10DC 829F 3EFD
To claim this, I am signing this object:
class Friendship < ActiveRecord::Base | |
belongs_to :requester, class_name: 'User' | |
belongs_to :accepter, class_name: 'User' | |
scope :pending_and_confirmed, -> { unscope(where: :accepted_at) } | |
scope :confirmed, -> { unscope(where: :accepted_at).where.not(accepted_at: nil) } | |
scope :pending, -> { unscope(where: :accepted_at).where(accepted_at: nil) } | |
scope :by_user, ->(user) { where('requester_id = :user_id OR accepter_id = :user_id', user_id: user) } |
I hereby claim:
To claim this, I am signing this object:
RSpec.configure do |config| | |
config.include TemplateLocals, type: :view | |
end |
CONFIGURE_OPTS="--with-openssl-dir=$(brew --prefix openssl) --with-readline-dir=$(brew --prefix readline)" rbenv install 2.0.0-p247 |
CONFIGURE_OPTS="-c --enable-shared -c --with-readline-dir=$(brew --prefix readline)" rbenv install ree-1.8.7-2012.02 |