You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally this was done with a .published? method / scope. But logic is becoming more complicated and now this is not sufficient condition in some cases, like with published person events when the person is drafted, published pages on a process when the process is drafted etc. drafted != visible in the frontend anymore so I propose to use everywhere a public? method or public scope to achieve this.
The text was updated successfully, but these errors were encountered:
amiedes
changed the title
Use same method everywhere to decide if a page is visible in the front
Use same method everywhere to decide if an element is visible in the front
Jan 19, 2018
Originally this was done with a
.published?
method / scope. But logic is becoming more complicated and now this is not sufficient condition in some cases, like with published person events when the person is drafted, published pages on a process when the process is drafted etc. drafted != visible in the frontend anymore so I propose to use everywhere apublic?
method orpublic
scope to achieve this.The text was updated successfully, but these errors were encountered: