Fix for scope

This commit is contained in:
chris 2013-03-20 17:20:17 +08:00
parent e71b002438
commit 91afd49f75
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ module OrbitCoreLib
def self.included(base)
base.instance_eval("field :disable,type: Boolean,:default => false")
base.instance_eval("scope :all,where(disable: false)")
base.instance_eval("scope :all, where(:disable.in [false, nil, ''])")
base.instance_eval("scope :admin_manager_all,find(:all)")
base.define_singleton_method :find do |*args|