hooking up Stapler correctly

This commit is contained in:
Kohsuke Kawaguchi 2011-09-09 10:49:11 -07:00
parent f5d973124a
commit 440fffadcf
1 changed files with 6 additions and 0 deletions

View File

@ -28,6 +28,12 @@ module Jenkins
@pluginid = @plugin.name
end
# tell Stapler to go look for views from the wrapped object
include Java.org.kohsuke.stapler.StaplerProxy
def getTarget
@object
end
# Make sure that proxy classes do not try to persist the plugin parameter.
# when serializing this proxy to XStream. It will be reconstructed with
# [Unmarshal#read_completed]