revert default scope change

This commit is contained in:
albert
2013-01-07 17:24:03 -05:00
parent 040059c491
commit 80f34d08d9
25 changed files with 0 additions and 25 deletions

View File

@@ -12,7 +12,6 @@ class PostFlag < ActiveRecord::Base
scope :resolved, where("is_resolved = ?", true)
scope :unresolved, where("is_resolved = ?", false)
scope :old, lambda {where("created_at <= ?", 3.days.ago)}
default_scope limit(1)
def update_post
post.update_column(:is_flagged, true)