lib/brief/briefcase.rb in brief-1.10.0 vs lib/brief/briefcase.rb in brief-1.10.1

- old
+ new

@@ -190,10 +190,10 @@ app_namespace.constants.map {|c| app_namespace.const_get(c) } end def model_class_for(document) return generic_model_class_for(document) unless uses_app? - app_models.find {|k| k.type_alias == document.document_type } + app_models.find {|k| k.type_alias == document.document_type } || generic_model_class_for(document) end def generic_model_class_for(document) Brief::Model.for_type(document.document_type) || Brief::Model.for_folder_name(document.parent_folder_name) end