Revision 3cdaa292
Added by Dmitri Dolguikh about 10 years ago
app/helpers/puppetclasses_and_environments_helper.rb | ||
---|---|---|
end
|
||
|
||
def import_proxy_links hash, classes=nil
|
||
SmartProxy.puppet_proxies.map do |proxy|
|
||
SmartProxy.with_features("Puppet").map do |proxy|
|
||
display_link_if_authorized(_("Import from %s") % proxy.name, hash.merge(:proxy => proxy), :class=>classes)
|
||
end.flatten
|
||
end
|
Also available in: Unified diff
Fixes #4851: a SmartProxy.with_features scope replaces feature-specific scopes generated during class loading