My Recent Pastes (541 and counting)

Recent Pasties by rsl (541 and counting)

Pages: 1 3 4 5 37

Below are summaries of the 15 most recent pasties by rsl.

September 17, 2008
5:13PM EDT
by rsl

1
2
3
4
5
module DateWithOptionalTime
  module ActiveRecord
    module Base
      
      def self.included(base)

September 17, 2008
4:49PM EDT
by rsl

1
2
3
4
5
module Bar
  def self.included(base)
    base.extend ClassMethods
  end
  

September 17, 2008
4:32PM EDT
by rsl

1
2
3
4
5
module DateWithOptionalTime
  module ActiveRecord
    module Base
      
      def self.included(base)

September 17, 2008
4:23PM EDT
by rsl

1
2
3
4
5
module DateWithOptionalTime
  module ActiveRecord
    module Base
      
      def self.included(base)

September 17, 2008
4:11PM EDT
by rsl

1
2
3
4
5
> class Foo
    def initialize
      @foo = "foo"
      end
    def foo

September 17, 2008
12:08PM EDT
by rsl

1
2
3
4
5
namespace :deploy do
  task :after_update_code, :roles => [:app, :db, :web] do
    symlink_sphinx_indexes
  end

September 17, 2008
11:25AM EDT
by rsl

1
2
3
4
5
require File.dirname(__FILE__) + '/../spec_helper'

describe UsersController do
  describe "when not logged in" do
    it "should redirect all requests to the login page" do

September 17, 2008
11:19AM EDT
by rsl

1
2
3
4
5
describe PostsController do
  fixtures :all

  it "should raise an error here" do
    lambda {

September 16, 2008
6:57PM EDT
by rsl

1
2
3
4
5
class Klass
  @array = [1,2,3]
  
  def self.fuckup
    backup = @array.dup

September 16, 2008
5:12PM EDT
by rsl

1
2
3
4
5
> class Foo
    def speak
      puts "speaking"
      end
    end

September 15, 2008
2:24PM EDT
by rsl

1
2
3
4
5
module MyModule
  def self.included(base)
    base.extend ClassMethods
  end

September 11, 2008
2:09PM EDT
by rsl

1
2
3
4
5
From d3eedfaae09942c3d99377174ddf8cd554eee0a2 Mon Sep 17 00:00:00 2001
From: rsl <rsl@luckysneaks.com>
Date: Thu, 11 Sep 2008 14:07:44 -0400
Subject: [PATCH] don't hit the db if there's no ids for records

September 10, 2008
2:24PM EDT
by rsl

1
2
3
4
5
From 9b1480a62af1c7a9141bbd3f74cf50098144e3fa Mon Sep 17 00:00:00 2001
From: rsl <rsl@luckysneaks.com>
Date: Wed, 10 Sep 2008 14:22:05 -0400
Subject: [PATCH] fixed association preloading to use = instead of IN when there's only one record

September 09, 2008
12:28AM EDT
by rsl

1
2
3
4
5
sneaky:optimized_oyster rsl$ sudo gem cleanup
Cleaning up installed gems...
Attempting to uninstall capistrano-2.4.3
Successfully uninstalled capistrano-2.4.3
Attempting to uninstall capistrano-2.4.0

September 08, 2008
8:47PM EDT
by rsl

1
2
3
4
5
diff --git a/activerecord/lib/active_record/association_preload.rb b/activerecord/lib/active_record/association_preload.rb
index 61fa34a..c60850f 100644
--- a/activerecord/lib/active_record/association_preload.rb
+++ b/activerecord/lib/active_record/association_preload.rb
@@ -95,7 +95,7 @@ module ActiveRecord

Next page