Class: Pageflow::PotentialEntryTranslations Private
- Inherits:
-
Object
- Object
- Pageflow::PotentialEntryTranslations
- Defined in:
- app/models/pageflow/potential_entry_translations.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.
Class Method Summary collapse
- .for(entry) ⇒ Object private
Instance Method Summary collapse
-
#initialize(entry) ⇒ PotentialEntryTranslations
constructor
private
A new instance of PotentialEntryTranslations.
- #resolve ⇒ Object private
Constructor Details
#initialize(entry) ⇒ PotentialEntryTranslations
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.
Returns a new instance of PotentialEntryTranslations.
4 5 6 |
# File 'app/models/pageflow/potential_entry_translations.rb', line 4 def initialize(entry) @entry = entry end |
Class Method Details
.for(entry) ⇒ 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.
8 9 10 |
# File 'app/models/pageflow/potential_entry_translations.rb', line 8 def self.for(entry) new(entry) end |
Instance Method Details
#resolve ⇒ 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.
12 13 14 15 16 17 18 19 20 |
# File 'app/models/pageflow/potential_entry_translations.rb', line 12 def resolve preload( group_by_translation_group( exclude_translations( other_entries_of_account ) ) ) end |