Class: CitizenBudgetModel::Section
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- CitizenBudgetModel::Section
- Defined in:
- app/models/citizen_budget_model/section.rb
Instance Method Summary collapse
-
#display_name ⇒ String
Returns the section’s title or “Untitled”.
Instance Method Details
#display_name ⇒ String
Returns the section’s title or “Untitled”
15 16 17 |
# File 'app/models/citizen_budget_model/section.rb', line 15 def display_name title.present? && title || _('Untitled') end |