1
0
مراية لـ https://github.com/postalserver/postal.git تم المزامنة 2025-11-30 21:32:30 +00:00
الملفات
postal/app/controllers/organization_ip_pools_controller.rb
Adam Cooke 698b580db4 remove types from ip pools
closes #24
2017-04-28 16:40:53 +01:00

17 أسطر
428 B
Ruby

class OrganizationIPPoolsController < ApplicationController
include WithinOrganization
before_action :admin_required, :only => [:assignments]
def index
@ip_pools = organization.ip_pools.order(:name)
end
def assignments
organization.ip_pool_ids = params[:ip_pools]
organization.save!
redirect_to [organization, :ip_pools], :notice => "Organization IP pools have been updated successfully"
end
end