Revision afa59582
Added by Ohad Levy over 11 years ago
- ID afa595828c752f078a5fe825e6a956df931ed683
app/controllers/organizations_controller.rb | ||
---|---|---|
end
|
||
|
||
def clone
|
||
new = @organization.clone
|
||
# copy all the relations
|
||
new.name = ""
|
||
new.users = @organization.users
|
||
new.smart_proxies = @organization.smart_proxies
|
||
new.subnets = @organization.subnets
|
||
new.compute_resources = @organization.compute_resources
|
||
new.media = @organization.media
|
||
new.domains = @organization.domains
|
||
new.media = @organization.media
|
||
new.hostgroups = @organization.hostgroups
|
||
new.locations = @organization.locations
|
||
|
||
@organization = new
|
||
render :action => :new
|
||
@organization = @organization.clone
|
||
render :action => :new
|
||
end
|
||
|
||
def create
|
Also available in: Unified diff
refactor - move clone taxonomy to models