Skip to content

Commit

Permalink
Revert "remove default scope on tweet model"
Browse files Browse the repository at this point in the history
This reverts commit d2588c0.

We want to remove the default scope and replace with an explict
scope where tweets are fetched
  • Loading branch information
bf4 committed Oct 31, 2013
1 parent 07d2b5a commit 6e59af7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/models/tweet.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
class Tweet < ActiveRecord::Base
default_scope { order("published_at desc") }

mount_uploader :image, ImageUploader

Expand Down

0 comments on commit 6e59af7

Please sign in to comment.