Module: DifficultCustomerHelper
- Defined in:
- app/helpers/difficult_customer_helper.rb
Overview
Rails helper
Instance Method Summary collapse
Instance Method Details
#difficult_customer ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 |
# File 'app/helpers/difficult_customer_helper.rb', line 3 def difficult_customer session[:requests] = session[:requests].to_i + 1 msg = DifficultCustomer::MessageDisplay.new( session, request, user_signed_in? ). return if msg.nil? render "difficult_customer/#{msg.params['appearance']}", message: msg end |
#random_dom_ids(count, complexity: 10) ⇒ Object
15 16 17 |
# File 'app/helpers/difficult_customer_helper.rb', line 15 def random_dom_ids(count, complexity: 10) Array.new(count) { random_string(complexity) } end |