Class: MoveToGo::Organizations::DuplicateSet
- Inherits:
-
Array
- Object
- Array
- MoveToGo::Organizations::DuplicateSet
- Defined in:
- lib/move-to-go/model/organizations.rb
Instance Method Summary collapse
-
#merge_all! ⇒ Object
Moves all data to the first organization and returns the remaining orgs.
Instance Method Details
#merge_all! ⇒ Object
Moves all data to the first organization and returns the remaining orgs
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/move-to-go/model/organizations.rb', line 10 def merge_all!() return self.map{ |org| if org != self.first self.first.move_data_from(org) org end } .flatten .compact end |