Module: Ddr::Models::Governable

Extended by:
ActiveSupport::Concern
Included in:
Base
Defined in:
lib/ddr/models/governable.rb

Instance Method Summary collapse

Instance Method Details

#copy_admin_policy_from(other) ⇒ Object



12
13
14
15
16
17
# File 'lib/ddr/models/governable.rb', line 12

def copy_admin_policy_from(other)
  if admin_policy = other.admin_policy
    self.admin_policy = admin_policy
    logger.debug "Copied admin policy from #{other.model_and_id} to #{model_and_id}"
  end
end