Class: SeriesStatement
- Inherits:
-
ApplicationRecord
- Object
- ApplicationRecord
- SeriesStatement
- Defined in:
- app/models/series_statement.rb,
app/models2/series_statement.rb
Instance Attribute Summary collapse
-
#selected ⇒ Object
Returns the value of attribute selected.
Instance Method Summary collapse
Instance Attribute Details
#selected ⇒ Object
Returns the value of attribute selected.
23 24 25 |
# File 'app/models/series_statement.rb', line 23 def selected @selected end |
Instance Method Details
#create_root_series_statement ⇒ Object
40 41 42 43 44 45 46 |
# File 'app/models/series_statement.rb', line 40 def create_root_series_statement if series_master? self.root_manifestation = manifestation else self.root_manifestation = nil end end |
#reindex ⇒ Object
28 29 30 31 |
# File 'app/models/series_statement.rb', line 28 def reindex manifestation.try(:index) root_manifestation.try(:index) end |
#titles ⇒ Object
33 34 35 36 37 38 |
# File 'app/models/series_statement.rb', line 33 def titles [ original_title, title_transcription ] end |