noosfero | FIx parent directory for cloned article (#643)

Daniela Feitosa gitlab at gitlab.com
Thu Aug 27 14:52:53 BRT 2015


New comment for Merge Request 643

https://gitlab.com/noosfero/noosfero/merge_requests/643#note_1987311


Daniela Feitosa

In `@page.parent.nil? ? nil : @page.parent` you don't need to test if it is nil to add nil. You can use only @page.parent. So the condition would be `@page.folder? ? @page : @page.parent`

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20150827/8b04dfa2/attachment.html>


More information about the Noosfero-dev mailing list