Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Version
- named_scope :drafts, :conditions => { :draft => true }
- named_scope :published, :conditions => { :draft => false }
- end
- Version.drafts # all drafts
- Version.published # all published
Add Comment
Please, Sign In to add comment