Skip to content

Commit

Permalink
o secour
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyan11 committed Jun 18, 2024
1 parent 1e15fa1 commit e830d99
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions src/Pyramid-Bloc/PyramidSaveModelVerifier.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,21 @@ PyramidSaveModelVerifier class >> classPackageIsEqual [

^ self new
verifyBlock: [ :model |
self classPackageIsEqual: model.
];
Smalltalk globals
at: model savingClassName asSymbol
ifPresent: [ :class | "
Model = class package >> OK
Model = class package '-' class packageTag >> OK
KO"
class package name = model savingPackageName
ifTrue: [ true ]
ifFalse: [
(model savingPackageName endsWith: class packageTag name)
ifFalse: [ false ]
ifTrue: [
model savingPackageName = (class package name , '-'
, class packageTag name) ] ] ]
ifAbsent: [ true ] ];
showBlock: [ :view | view showClassPackageIsNotEqualError ];
yourself
]
Expand Down

0 comments on commit e830d99

Please sign in to comment.