Created
November 8, 2009 03:54
-
-
Save npverni/229086 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
named_scope :featured, lambda {|*args| | |
limit = args.first || 1 | |
{ :conditions => ['is_featured = 1'], | |
:order => 'start_date asc', | |
:limit => limit} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment