Using paper trail previous version instead of reify
This commit is contained in:
parent
65b926f7ff
commit
ad748f04da
@ -4,7 +4,7 @@
|
|||||||
new = render file: '/events/show'
|
new = render file: '/events/show'
|
||||||
|
|
||||||
former = @event
|
former = @event
|
||||||
@event = @event.versions.last.reify
|
@event = @event.previous_version if @event.previous_version
|
||||||
|
|
||||||
prev = render file: '/events/show'
|
prev = render file: '/events/show'
|
||||||
@event = former
|
@event = former
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
new = render file: '/orgas/show'
|
new = render file: '/orgas/show'
|
||||||
|
|
||||||
former = @orga
|
former = @orga
|
||||||
@orga = @orga.versions.last.reify
|
@orga = @orga.previous_version
|
||||||
|
|
||||||
prev = render file: '/orgas/show'
|
prev = render file: '/orgas/show'
|
||||||
@orga = former
|
@orga = former
|
||||||
|
Loading…
Reference in New Issue
Block a user