Fix for scope
This commit is contained in:
parent
e71b002438
commit
91afd49f75
|
@ -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|
|
||||
|
|
Loading…
Reference in New Issue