Class: ODDB::View::Substances::AdminComposite

Inherits:
HtmlGrid::Composite show all
Defined in:
src/view/substances/substance.rb

Constant Summary

CSS_CLASS =
'composite top'
COMPONENTS =
{
  [0,0] =>  View::Substances::MergeSubstancesForm,
  [0,1] =>  View::Substances::ActiveFormForm,
  [0,2] =>  :narcotic,
}
CSS_MAP =
{
}

Instance Method Summary (collapse)

Methods inherited from HtmlGrid::Composite

event_link, #hash_insert_col, #hash_insert_row

Instance Method Details

- (Object) narcotic(model, session)



145
146
147
148
149
# File 'src/view/substances/substance.rb', line 145

def narcotic(model, session)
  if(narc = model.narcotic)
    View::Drugs::NarcoticInnerComposite.new(narc, @session, self)
  end
end