Skip to content

Instantly share code, notes, and snippets.

@jackdempsey
Created November 29, 2008 21:13
Show Gist options
  • Select an option

  • Save jackdempsey/30317 to your computer and use it in GitHub Desktop.

Select an option

Save jackdempsey/30317 to your computer and use it in GitHub Desktop.
module Sequel
class Model
def self.inherited(klass)
klass.extend(WillPaginate::Finders::Sequel)
end
end
end
class Car < Sequel::Model
# extend WillPaginate::Finders::Sequel
def self.setup
Car.create(:name => 'Shelby', :notes => "Man's best friend")
Car.create(:name => 'Aston Martin', :notes => "Woman's best friend")
Car.create(:name => 'Corvette', :notes => 'King of the Jungle')
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment