Skip to content

Instantly share code, notes, and snippets.

@jblanche
Created October 24, 2008 13:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jblanche/19426 to your computer and use it in GitHub Desktop.
Save jblanche/19426 to your computer and use it in GitHub Desktop.
##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