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'
|
||||
|
||||
former = @event
|
||||
@event = @event.versions.last.reify
|
||||
@event = @event.previous_version if @event.previous_version
|
||||
|
||||
prev = render file: '/events/show'
|
||||
@event = former
|
||||
|
@ -4,7 +4,7 @@
|
||||
new = render file: '/orgas/show'
|
||||
|
||||
former = @orga
|
||||
@orga = @orga.versions.last.reify
|
||||
@orga = @orga.previous_version
|
||||
|
||||
prev = render file: '/orgas/show'
|
||||
@orga = former
|
||||
|
Loading…
Reference in New Issue
Block a user