Created
June 10, 2011 05:08
-
-
Save meltzerj/1018264 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
has_many :activities, :class_name => "TimelineEvent", | |
:finder_sql => 'SELECT timeline_events.* FROM timeline_events | |
WHERE ' + ACTIVITIES_CONDITION + ' | |
ORDER BY timeline_events.created_at DESC', | |
:order => "timeline_events.created_at DESC LIMIT 20" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment