Method: SectionRenderer#section_prompt
- Defined in:
- app/presentation/section_renderer.rb
#section_prompt ⇒ Object
Optional section prompt, from Rails i18n key ‘umlaut.display_sections.#section_div_id.prompt` Deprecated legacy, you can force with :section_prompt key in section config hash.
456 457 458 459 460 461 462 463 464 465 466 467 |
# File 'app/presentation/section_renderer.rb', line 456 def section_prompt prompt = nil if .has_key?(:section_prompt) prompt = [:section_prompt] else prompt = I18n.t("prompt", :scope => "umlaut.display_sections.#{self.div_id}", :default => "") end prompt = nil if prompt.blank? return prompt end |