Class: BBMB::Html::State::Favorites
- Defined in:
- lib/bbmb/html/state/favorites.rb
Constant Summary collapse
- DIRECT_EVENT =
:favorites- VIEW =
View::Favorites
Instance Method Summary collapse
Methods inherited from Global
#direct_argument_keys, #direct_arguments, #direct_request?, #initialize, #logout, mandatory, #requested_event, #trigger, #user_input
Constructor Details
This class inherits a constructor from BBMB::Html::State::Global
Instance Method Details
#init ⇒ Object
13 14 15 16 17 |
# File 'lib/bbmb/html/state/favorites.rb', line 13 def init @model = _customer.favorites @model.positions.delete_if { |position| position.product.nil? } @model end |