Class: Pageflow::EntryTranslationGroup Private
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Pageflow::EntryTranslationGroup
- Defined in:
- app/models/pageflow/entry_translation_group.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
Instance Method Details
#merge_into(translation_group) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
33 34 35 36 |
# File 'app/models/pageflow/entry_translation_group.rb', line 33 def merge_into(translation_group) entries.update_all(translation_group_id: translation_group.id) destroy end |
#single_item_or_empty? ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
38 39 40 |
# File 'app/models/pageflow/entry_translation_group.rb', line 38 def single_item_or_empty? !entries.many? end |