Guest User

Untitled

a guest
Feb 20th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. ##I want the named_scope_first to return the first Article in the Database
  2. class Article < ActiveRecord::Base
  3. named_scope_first :test, :conditions => ["id > ?",0]
  4. named_scope :test2, :conditions => ["id < ?",999953125641]
  5. end
Add Comment
Please, Sign In to add comment