Class: CitizenBudgetModel::Section

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/citizen_budget_model/section.rb

Instance Method Summary collapse

Instance Method Details

#display_nameString

Returns the section’s title or “Untitled”

Returns:

  • (String)

    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