Created
November 29, 2008 21:13
-
-
Save jackdempsey/30317 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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