Sha256: abaf5473706dbc45dab48d05d1117c2dfeb07dd5a598d80b02950dcedfea0f14

Contents?: true

Size: 509 Bytes

Versions: 1

Compression:

Stored size: 509 Bytes

Contents

# Copyright: Copyright 2009 Topic Maps Lab, University of Leipzig.
# License:   Apache License, Version 2.0

module RTM::Sugar::Association
  module Remove

    def force_remove
      if assoc_reifier = self.reifier
        self.reifier = nil
        assoc_reifier.force_remove
      end
      self.roles.to_a.clone.each do |role|
        if role_reifier = role.reifier
          role.reifier = nil
          role_reifier.force_remove
        end
      end
      remove
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rtm-0.3.1 lib/rtm/sugar/association/remove.rb