Class: BBMB::Html::State::Customers
- Defined in:
- lib/bbmb/html/state/customers.rb
Constant Summary collapse
- DIRECT_EVENT =
:customers
- VIEW =
View::Customers
- FILTER =
%i{customer_id ean13 organisation plz city email}
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
15 16 17 18 19 20 21 22 23 24 |
# File 'lib/bbmb/html/state/customers.rb', line 15 def init start = Time.now @model = BBMB.persistence.all(Model::Customer) @sortby = [:organisation] SBSM.debug('State') { sprintf("Customers#init: loaded %i customers in %1.5fs", @model.size, Time.now - start) } @filter = make_filter end |