Module: RTM::Merging::TopicMap
- Includes:
- MergeReifiable
- Defined in:
- lib/rtm/activerecord/merging.rb
Instance Method Summary collapse
-
#merge(other) ⇒ Object
(also: #merge_in)
other:TopicMap.
Instance Method Details
#merge(other) ⇒ Object Also known as: merge_in
other:TopicMap
226 227 228 229 230 231 232 233 234 |
# File 'lib/rtm/activerecord/merging.rb', line 226 def merge(other) # other:TopicMap self.topics.add_all other.topics self.associations.add_all other.associations self.merge_reifiable other self.merge_item_identifiers other self.merge_rewrap other self end |