Class: ODDB::Html::View::Drugs::Patinfo

Inherits:
Template
  • Object
show all
Defined in:
lib/oddb/html/view/drugs/patinfo.rb

Constant Summary collapse

CONTENT =
PatinfoComposite

Constants inherited from Template

Template::COMPONENTS, Template::CSS_ID_MAP, Template::DOJO_DEBUG, Template::DOJO_PARSE_WIDGETS, Template::DOJO_REQUIRE, Template::FOOT, Template::HEAD, Template::HTTP_HEADERS

Instance Method Summary collapse

Methods inherited from Template

#css_links, #title

Instance Method Details

#_titleObject



35
36
37
38
39
40
41
# File 'lib/oddb/html/view/drugs/patinfo.rb', line 35

def _title
  name = @model.name.send(@session.language)
  if name.nil? && @model.respond_to?(:product)
    name = @model.product.name.send(@session.language)
  end
  super.push name
end