#post method simplified
This commit is contained in:
parent
f25a6eb8fb
commit
a022775446
|
@ -108,7 +108,7 @@ Application subclass: BlogApplication [
|
|||
post := self model posts
|
||||
detect: [:each | (each title , each hash printString) = path]
|
||||
ifNone: [self redirectToIndex].
|
||||
^[:e | e build: (self postContentsFor: post)]
|
||||
^self postContentsFor: post
|
||||
]
|
||||
|
||||
posts [
|
||||
|
|
Reference in New Issue