Simplified Formula.valid?
This commit is contained in:
parent
fd11198446
commit
dc9ebb36f6
@ -100,8 +100,7 @@ module BodyTracking
|
|||||||
end
|
end
|
||||||
|
|
||||||
def valid?
|
def valid?
|
||||||
self.validate if @quantities.nil?
|
@quantities || self.validate.empty?
|
||||||
!@quantities.nil?
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_quantities
|
def get_quantities
|
||||||
|
Reference in New Issue
Block a user