Created
June 4, 2010 18:52
-
-
Save knowuh/425795 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 contains_active_model(model_object) | |
m = [] | |
if collectdata_model_active && model == model_object then m << model end | |
if collectdata2_model_active && second_model == model_object then m << second_model end | |
if (collectdata3_model_active && third_model) then m << third_model.model_type.name end | |
if (further_model_active && fourth_model) then m << fourth_model.model_type.name end | |
m.length > 0 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment