# == Schema Information
#
# Table name: access_control_lists
#
#  id           :integer          not null, primary key
#  policy       :string(255)
#  protocol     :string(255)
#  src_ip       :string(255)
#  scr_bitmask  :string(255)
#  src_port     :string(255)
#  static_routing_id :integer
#  created_at   :datetime
#  updated_at   :datetime

class StaticRoutingList < ActiveRecord::Base
	belongs_to :static_route
	include PublicActivity::Model

	tracked owner: ->(controller, model) { controller && controller.tracked_current_user },params:
  { :attributes => proc {|controller, model_instance| {"static_routing_lists(#{model_instance.network})" => model_instance.changes}}},organisation_id: ->(controller, model) { controller && controller.tracked_current_user.organisation_id }

  tracked assumed_by: proc {|controller, model| controller.user_assumed_by if controller}

  after_create do |acl|
  end

  after_update do |acl|
  end

  def self.update_redis
  end

end
