Created
June 7, 2011 08:01
-
-
Save gamov/1011864 to your computer and use it in GitHub Desktop.
Model Optimisation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def any_missing_specs | |
if item_variants.loaded? | |
item_variants.any?{|si| si.m3 == 0 || si.weight == 0} | |
else | |
item_variants.where({:m3 => 0 } | {:weight => 0}).size != 0 #metawhere | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment