core/app/models/product_scope.rb
# checks validity of the named scope (if its safe and can be applied on Product)
checks validity of the named scope (if its safe and can be applied on Product)
checks validity of the named scope ( if its safe and can be applied on Product )
def check_validity_of_scope
    errors.add(:name, "is not a valid scope name") unless Product.condition?(self.name)
    apply_on(Product).limit(0) != nil
  rescue Exception
    errors.add(:arguments, "are incorrect")
  end
def check_validity_of_scope errors . add ( :name , "is not a valid scope name" ) unless Product . condition? ( self . name ) apply_on ( Product ) . limit ( 0 ) != nil rescue Exception errors . add ( :arguments , "are incorrect" ) end
checks validity of the named scope (if its safe and can be applied on Product)
checks validity of the named scope ( if its safe and can be applied on Product )