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

@@ -15,7 +15,6 @@ class Pool < ActiveRecord::Base
attr_accessible :name, :description, :post_ids, :post_id_array, :post_count, :is_active, :as => [:member, :privileged, :contributor, :janitor, :moderator, :admin, :default]
attr_accessible :is_deleted, :as => [:janitor, :moderator, :admin]
scope :active, where("is_active = true and is_deleted = false")
default_scope limit(1)
def self.name_to_id(name)
if name =~ /^\d+$/