implements #46: The '/wiki_pages' and '/forum_topics' resources are inconvenient to navigate to

This commit is contained in:
albert
2011-09-21 16:30:44 -04:00
parent c42513ea8e
commit c605f3d3c0
2 changed files with 6 additions and 0 deletions

View File

@@ -13,6 +13,7 @@ class Upload < ActiveRecord::Base
after_destroy :delete_temp_file
validate :uploader_is_not_limited
scope :uploaded_by, lambda {|user_id| where(["uploader_id = ?", user_id])}
scope :pending, where(:status => "pending")
module ValidationMethods
def uploader_is_not_limited