Module: ODDB::View::NotifyItem

Included in:
NotifyForm, NotifyMail
Defined in:
src/view/notify.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) notify_item(model)



74
75
76
77
78
79
80
81
82
# File 'src/view/notify.rb', line 74

def notify_item(model)
  mdl = model.item
  case mdl
  when ODDB::Package
    View::Drugs::PackageInnerComposite.new(mdl, @session, self)
  when ODDB::Migel::Product
    View::Migel::ProductInnerComposite.new(mdl, @session, self)
  end
end