Created
October 24, 2008 13:35
-
-
Save jblanche/19426 to your computer and use it in GitHub Desktop.
This file contains 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
##I want the named_scope_first to return the first Article in the Database | |
class Article < ActiveRecord::Base | |
named_scope_first :test, :conditions => ["id > ?",0] | |
named_scope :test2, :conditions => ["id < ?",999953125641] | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment